Module Name: src Committed By: agc Date: Tue Mar 16 00:24:49 UTC 2010
Modified Files: src/crypto/external/bsd/netpgp/dist/src/hkpd: hkpd.c Log Message: kill 2 benign errors - don't try to listen on a socket if it's not been opened and bound. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.c diff -u src/crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.c:1.2 src/crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.c:1.3 --- src/crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.c:1.2 Tue Mar 16 00:22:52 2010 +++ src/crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.c Tue Mar 16 00:24:49 2010 @@ -230,8 +230,12 @@ (void) regcomp(&opterm, OPTERM, REG_EXTENDED); (void) regcomp(&searchterm, SEARCHTERM, REG_EXTENDED); (void) regcomp(&machreadterm, MACHREAD, REG_EXTENDED); - listen(sock4, 32); - listen(sock6, 32); + if (sock4 >= 0) { + listen(sock4, 32); + } + if (sock6 >= 0) { + listen(sock6, 32); + } for (;;) { /* find out which socket we have data on */ FD_ZERO(&sockets);