summaryrefslogtreecommitdiff
path: root/net_ntrip.c
diff options
context:
space:
mode:
Diffstat (limited to 'net_ntrip.c')
-rw-r--r--net_ntrip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net_ntrip.c b/net_ntrip.c
index 5f1f7e53..dd21f139 100644
--- a/net_ntrip.c
+++ b/net_ntrip.c
@@ -359,7 +359,7 @@ static int ntrip_stream_get_req(const struct ntrip_stream_t *stream)
char buf[BUFSIZ];
dsock = netlib_connectsock(AF_UNSPEC, stream->url, stream->port, "tcp");
- if (dsock == -1) {
+ if (BAD_SOCKET(dsock)) {
gpsd_report(LOG_ERROR, "ntrip stream connect error %d\n", dsock);
return -1;
}