summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2000-03-08 08:43:17 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2000-03-08 08:43:17 +0000
commitdaf75008fbdb187d8b1cb62406e5a76564041039 (patch)
tree066606307c4a146a2331054386b9ec00ebd3bc89
parentfaba539f5e9d0dd730869eb6fc9d2170dd10df30 (diff)
Merge with EOM 1.48
author: ho Do not crash if user forgot address field.
-rw-r--r--sbin/isakmpd/udp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c
index 805715fc01c..f57249ebd0e 100644
--- a/sbin/isakmpd/udp.c
+++ b/sbin/isakmpd/udp.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: udp.c,v 1.19 2000/02/25 17:23:42 niklas Exp $ */
-/* $EOM: udp.c,v 1.47 2000/02/20 19:58:42 niklas Exp $ */
+/* $OpenBSD: udp.c,v 1.20 2000/03/08 08:43:16 niklas Exp $ */
+/* $EOM: udp.c,v 1.48 2000/03/07 21:37:52 ho Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -362,6 +362,11 @@ udp_create (char *name)
port = htons (port);
addr_str = conf_get_str (name, "Address");
+ if (!addr_str)
+ {
+ log_print ("udp_create: no address configured for \"%s\"", name);
+ return 0;
+ }
addr = inet_addr (addr_str);
if (addr == INADDR_NONE)
{