commit | 429fcc23db22469ca48d18ad4a2940a265965caf | [log] [tgz] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Sun Mar 26 14:02:16 2006 +1100 |
committer | Damien Miller <djm@mindrot.org> | Sun Mar 26 14:02:16 2006 +1100 |
tree | bfeb3aae0ac79c168f0470e5ad1aadfd1720dcab | |
parent | 96937bd9144f582330478ed5c5b76dd3286c46e4 [diff] [blame] |
- djm@cvs.openbsd.org 2006/03/20 11:38:46 [key.c] (really) last of the Coverity diffs: avoid possible NULL deref in key_free. via elad AT netbsd.org; markus@ ok
diff --git a/key.c b/key.c index 5cb54c1..283aea9 100644 --- a/key.c +++ b/key.c
@@ -122,6 +122,8 @@ void key_free(Key *k) { + if (k == NULL) + fatal("key_free: key is NULL); switch (k->type) { case KEY_RSA1: case KEY_RSA: