Skip to content

Commit

Permalink
remove masking of s7 protocols errors (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmcguinn authored Jul 30, 2021
1 parent 904ea05 commit a70b933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/siemens/s7.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ func GetS7Banner(logStruct *S7Log, connection net.Conn, reconnect ReconnectFunct
// Make Module Identification request
moduleIdentificationResponse, err := readRequest(connection, S7_SZL_MODULE_IDENTIFICATION)
if err != nil {
return nil // mask errors after detecting IsS7
return err
}
parseModuleIdentificatioNRequest(logStruct, &moduleIdentificationResponse)

// Make Component Identification request
componentIdentificationResponse, err := readRequest(connection, S7_SZL_COMPONENT_IDENTIFICATION)
if err != nil {
return nil // mask errors after detecting IsS7
return err
}
parseComponentIdentificationResponse(logStruct, &componentIdentificationResponse)

Expand Down

0 comments on commit a70b933

Please sign in to comment.