aboutsummaryrefslogtreecommitdiff
path: root/tests/server/tftpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/server/tftpd.c')
-rw-r--r--tests/server/tftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index afd7f4fdd..6014842b5 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -484,7 +484,7 @@ int main(int argc, char **argv)
sock = socket(AF_INET6, SOCK_DGRAM, 0);
#endif
- if (sock < 0) {
+ if(CURL_SOCKET_BAD == sock) {
perror("opening stream socket");
logmsg("Error opening socket");
return 1;
@@ -543,7 +543,7 @@ int main(int argc, char **argv)
from.sin_family = AF_INET;
peer = socket(AF_INET, SOCK_DGRAM, 0);
- if (peer < 0) {
+ if(CURL_SOCKET_BAD == peer) {
logmsg("socket");
result = 2;
break;