summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--key.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8bebeda19..4928e20b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -61,6 +61,10 @@
61 memory leaks detected by Coverity via elad AT netbsd.org; 61 memory leaks detected by Coverity via elad AT netbsd.org;
62 deraadt@ ok 62 deraadt@ ok
63 that should be all of them now 63 that should be all of them now
64 - djm@cvs.openbsd.org 2006/03/20 11:38:46
65 [key.c]
66 (really) last of the Coverity diffs: avoid possible NULL deref in
67 key_free. via elad AT netbsd.org; markus@ ok
64 68
6520060325 6920060325
66 - OpenBSD CVS Sync 70 - OpenBSD CVS Sync
@@ -4318,4 +4322,4 @@
4318 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4322 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4319 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4323 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4320 4324
4321$Id: ChangeLog,v 1.4258 2006/03/26 03:01:54 djm Exp $ 4325$Id: ChangeLog,v 1.4259 2006/03/26 03:02:16 djm Exp $
diff --git a/key.c b/key.c
index 5cb54c13b..283aea99e 100644
--- a/key.c
+++ b/key.c
@@ -122,6 +122,8 @@ key_new_private(int type)
122void 122void
123key_free(Key *k) 123key_free(Key *k)
124{ 124{
125 if (k == NULL)
126 fatal("key_free: key is NULL);
125 switch (k->type) { 127 switch (k->type) {
126 case KEY_RSA1: 128 case KEY_RSA1:
127 case KEY_RSA: 129 case KEY_RSA: