diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 04:55:33 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 04:55:33 -0400 |
commit | 43066eebf8d01d06d3fe38eccf96be917cdc1fc8 (patch) | |
tree | 84f1d5300975c604b0ff64ea752cfd4de111a327 /gpsd.c | |
parent | 51e25bd36ed91cefa7719b7abb01279fec649fd0 (diff) | |
download | gpsd-43066eebf8d01d06d3fe38eccf96be917cdc1fc8.tar.gz |
Coverity may be being overly fussy, but this guard is probably a good idea.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -434,7 +434,7 @@ static int passivesock_af(int af, char *service, char *tcp_or_udp, int qlen) * this, trying to listen on in6addr_any will fail with the * address-in-use error condition. */ - { + if (s > -1) { int on = 1; (void)setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, &on, sizeof(on)); } |