Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/hkpd kill 2 benign error...
details: https://anonhg.NetBSD.org/src/rev/17a2824d2b74
branches: trunk
changeset: 753111:17a2824d2b74
user: agc <agc%NetBSD.org@localhost>
date: Tue Mar 16 00:24:49 2010 +0000
description:
kill 2 benign errors - don't try to listen on a socket if it's not been
opened and bound.
diffstat:
crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7dfa1ee5a2b7 -r 17a2824d2b74 crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.c
--- a/crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.c Tue Mar 16 00:22:52 2010 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/hkpd/hkpd.c Tue Mar 16 00:24:49 2010 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index