summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/udp.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-29 20:38:17 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-29 20:38:17 +0000
commita5bb99d71a2a1d57ec865f82145578beb96e713b (patch)
treea460228c9275ef4150ee298154cd3a1764471d89 /sbin/isakmpd/udp.c
parent683c416022545c05fdf12dd6edcd8fb7ba67b61e (diff)
LOG_DBG in hash_get, and if sysdep_cleartext() fails bail out of
initializing socket.
Diffstat (limited to 'sbin/isakmpd/udp.c')
-rw-r--r--sbin/isakmpd/udp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c
index 2eb625c12b0..a253df7c2f2 100644
--- a/sbin/isakmpd/udp.c
+++ b/sbin/isakmpd/udp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp.c,v 1.33 2001/06/29 20:22:58 niklas Exp $ */
+/* $OpenBSD: udp.c,v 1.34 2001/06/29 20:38:16 angelos Exp $ */
/* $EOM: udp.c,v 1.57 2001/01/26 10:09:57 niklas Exp $ */
/*
@@ -150,7 +150,10 @@ udp_make (struct sockaddr *laddr)
}
/* Make sure we don't get our traffic encrypted. */
- sysdep_cleartext (s);
+ if (sysdep_cleartext (s) == -1)
+ {
+ goto err;
+ }
/*
* In order to have several bound specific address-port combinations