From de3137aa6e339718ed70674a6b71f23a6e16ac4f Mon Sep 17 00:00:00 2001 From: Hakan Olsson Date: Wed, 7 Apr 2004 22:45:05 +0000 Subject: Reset *data in case of unknown key types --- sbin/isakmpd/key.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sbin/isakmpd/key.c') 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; } } -- cgit v1.2.3