diff options
Diffstat (limited to 'key.c')
-rw-r--r-- | key.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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: |