diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | key.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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 | ||
65 | 20060325 | 69 | 20060325 |
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 $ |
@@ -122,6 +122,8 @@ key_new_private(int type) | |||
122 | void | 122 | void |
123 | key_free(Key *k) | 123 | key_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: |