Stéphane Raimbault 8 жил өмнө
parent
commit
902c28730a

+ 1 - 1
tests/unit-test-server.c

@@ -161,7 +161,7 @@ int main(int argc, char*argv[])
                 uint8_t req[] = "\x00\x1C\x00\x00\x00\x05\xFF\x03\x02\x00\x00";
                 int req_length = 11;
                 int w_s = modbus_get_socket(ctx);
-                if (ws_s == -1) {
+                if (w_s == -1) {
                     fprintf(stderr, "Unable to get a valid socket in special test\n");
                     continue;
                 }