Skip to content

Commit

Permalink
CID 69145 - Argument cannot be negative in unit-test-server
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed May 18, 2016
1 parent 814ef17 commit 3053bd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit-test-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ 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) {
fprintf(stderr, "Unable to get a valid socket in special test\n");
continue;
}

/* Copy TID */
req[1] = query[1];
Expand Down

0 comments on commit 3053bd0

Please sign in to comment.