aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormilo <milo@r0ot.me>2011-03-17 10:07:39 +0100
committermilo <milo@r0ot.me>2011-03-17 11:41:51 +0100
commitf1fdf3991758251f47e707f6de0cd97add83583c (patch)
treeaff592b84761e458c8c947d44bf2a08237faa7ab /src
parent2b61418128a6a9401d42f452a9e1acb5fe29cbb0 (diff)
downloadlibssh-f1fdf3991758251f47e707f6de0cd97add83583c.tar.gz
libssh-f1fdf3991758251f47e707f6de0cd97add83583c.tar.xz
libssh-f1fdf3991758251f47e707f6de0cd97add83583c.zip
Set freed pointers to NULL in ssh_key struct
Diffstat (limited to 'src')
-rw-r--r--src/pki.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pki.c b/src/pki.c
index acf0aeb..cb0e6a7 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -67,6 +67,8 @@ void ssh_key_clean (ssh_key key){
key->flags=SSH_KEY_FLAG_EMPTY;
key->type=SSH_KEYTYPE_UNKNOWN;
key->type_c=NULL;
+ key->dsa = NULL;
+ key->rsa = NULL;
}
/**