- 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: