summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-12-10 23:15:34 +0000
committerderaadt <deraadt@openbsd.org>2001-12-10 23:15:34 +0000
commitc7999c1cb1ed067c0e0f694102d932184601978c (patch)
tree878a34f18306722a91c80722b1909af615a76c99
parentGrrr, drug induced haze. Thanks Theo. (diff)
downloadwireguard-openbsd-c7999c1cb1ed067c0e0f694102d932184601978c.tar.xz
wireguard-openbsd-c7999c1cb1ed067c0e0f694102d932184601978c.zip
handle "q" input better; bug reported in 2244
-rw-r--r--usr.sbin/config/ukcutil.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/config/ukcutil.c b/usr.sbin/config/ukcutil.c
index 7a596d92c36..acb76d4222b 100644
--- a/usr.sbin/config/ukcutil.c
+++ b/usr.sbin/config/ukcutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ukcutil.c,v 1.7 2001/12/05 10:11:23 deraadt Exp $ */
+/* $OpenBSD: ukcutil.c,v 1.8 2001/12/10 23:15:34 deraadt Exp $ */
/*
* Copyright (c) 1999-2001 Mats O Jansson. All rights reserved.
@@ -30,7 +30,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ukcutil.c,v 1.7 2001/12/05 10:11:23 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ukcutil.c,v 1.8 2001/12/10 23:15:34 deraadt Exp $";
#endif
#include <sys/types.h>
@@ -1005,6 +1005,8 @@ add_read(prompt, field, dev, len, val)
struct cfdata *cd;
struct cfdriver *cdrv;
+ *val = -1;
+
while (!ok) {
printf("%s ? ", prompt);
fflush(stdout);