From: niklas Date: Wed, 8 Mar 2000 08:43:16 +0000 (+0000) Subject: Merge with EOM 1.48 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f69947b5ce5e8647853be690d15ecf2f59122900;p=openbsd Merge with EOM 1.48 author: ho Do not crash if user forgot address field. --- 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) {