invalid error check in modbus_init_listen_tcp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libmodbus |
Fix Released
|
Low
|
Stéphane Raimbault |
Bug Description
Hello,
I think that that the error checking on the return value of the accept() call in modbus_
diff -Naur libmodbus-
--- libmodbus-
+++ libmodbus-
@@ -1827,7 +1827,7 @@
addrlen = sizeof(struct sockaddr_in);
- if (ret < 0) {
+ if (mb_param->fd < 0) {
Related branches
Changed in libmodbus: | |
status: | Fix Committed → Fix Released |
Thank you for your bug report kylesch.