diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2004-04-07 22:45:05 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2004-04-07 22:45:05 +0000 |
commit | de3137aa6e339718ed70674a6b71f23a6e16ac4f (patch) | |
tree | c29187ec07d2c41116064886aaddc2f306f79451 /sbin | |
parent | 9703e4febd07e1ffffbb2728eca01feac89f9cd0 (diff) |
Reset *data in case of unknown key types
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/isakmpd/key.c | 3 |
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; } } |