summaryrefslogtreecommitdiff
path: root/netlib.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-23 11:25:12 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-23 11:25:12 -0400
commit4e29107f1c459d8acc186c6ac0ee9be88f8fbda8 (patch)
tree775e6bdb9e8febcf78194b7b0c78822c0dea12b0 /netlib.c
parent66cd231962da8d54d74c4e59545d3072f57e32ec (diff)
downloadgpsd-4e29107f1c459d8acc186c6ac0ee9be88f8fbda8.tar.gz
Minor port fix.
Diffstat (limited to 'netlib.c')
-rw-r--r--netlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib.c b/netlib.c
index bf9e3e44..fc49cf9d 100644
--- a/netlib.c
+++ b/netlib.c
@@ -102,7 +102,7 @@ socket_t netlib_connectsock(int af, const char *host, const char *service,
#ifndef S_SPLINT_S
freeaddrinfo(result);
#endif /* S_SPLINT_S */
- if (ret != 0 || s < 0)
+ if (ret != 0 || BAD_SOCKET(s))
return ret;
#ifdef IPTOS_LOWDELAY