You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it should be || indeed. According to a documentation: "Protocol Identifier (2 bytes): This field is always 0 for Modbus services and other values are reserved for future extensions.". That means that both should be at zero. And the code as it is now accepts the packet if at least one byte is zero.
libmodbus/src/modbus-tcp.c
Line 202 in f1eb4bc
shouldn't there be an || instead of an &&?
The text was updated successfully, but these errors were encountered: