diff options
author | 2004-04-07 22:45:04 +0000 | |
---|---|---|
committer | 2004-04-07 22:45:04 +0000 | |
commit | c91ec48eca7ad35173ece3a068783fd8c4aef4fc (patch) | |
tree | 6e0f00e512f3c7ebdf468bee61d7e935b6ef4484 | |
parent | -Wmissing-declarations (diff) | |
download | wireguard-openbsd-c91ec48eca7ad35173ece3a068783fd8c4aef4fc.tar.xz wireguard-openbsd-c91ec48eca7ad35173ece3a068783fd8c4aef4fc.zip |
Reset *data in case of unknown key types
-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; } } |