summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2004-04-07 22:45:05 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2004-04-07 22:45:05 +0000
commitde3137aa6e339718ed70674a6b71f23a6e16ac4f (patch)
treec29187ec07d2c41116064886aaddc2f306f79451 /sbin
parent9703e4febd07e1ffffbb2728eca01feac89f9cd0 (diff)
Reset *data in case of unknown key types
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/key.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/isakmpd/key.c b/sbin/isakmpd/key.c
index 932b3d347e6..c1426abe628 100644
--- a/sbin/isakmpd/key.c
+++ b/sbin/isakmpd/key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key.c,v 1.13 2003/11/06 16:12:07 ho Exp $ */
+/* $OpenBSD: key.c,v 1.14 2004/04/07 22:45:04 ho Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu)
*
@@ -183,6 +183,7 @@ key_from_printable (int type, int private, char *key, u_int8_t **data,
default:
log_error ("key_from_printable: unknown/unsupported key type %d", type);
+ *data = 0;
break;
}
}