summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-08-11 10:13:33 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-08-11 10:13:33 +0000
commit511fb2556ded7a7b5ce46090532eccce46d77468 (patch)
tree71589fbf0aeadf5f8d37552a233e1dcc27de1218 /sbin
parent48bb589f47bb7d5fe1ee4e6beccc573adcfa3ce0 (diff)
Check socket >= 0. We should also be going through the list of cloned
transports and invalidating (somehow) those whose socket should not be used.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c
index 67ca604b9cf..39e48fb7b18 100644
--- a/sbin/isakmpd/udp.c
+++ b/sbin/isakmpd/udp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp.c,v 1.45 2001/08/11 09:57:30 angelos Exp $ */
+/* $OpenBSD: udp.c,v 1.46 2001/08/11 10:13:32 angelos Exp $ */
/* $EOM: udp.c,v 1.57 2001/01/26 10:09:57 niklas Exp $ */
/*
@@ -206,7 +206,7 @@ udp_make (struct sockaddr *laddr)
return &t->transport;
err:
- if (s != -1)
+ if (s >= 0)
close (s);
if (t)
{