diff options
Diffstat (limited to 'ssh-dss.c')
-rw-r--r-- | ssh-dss.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-dss.c,v 1.32 2014/06/24 01:13:21 djm Exp $ */ | 1 | /* $OpenBSD: ssh-dss.c,v 1.34 2015/12/11 04:21:12 mmcc Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -122,8 +122,7 @@ ssh_dss_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, | |||
122 | explicit_bzero(digest, sizeof(digest)); | 122 | explicit_bzero(digest, sizeof(digest)); |
123 | if (sig != NULL) | 123 | if (sig != NULL) |
124 | DSA_SIG_free(sig); | 124 | DSA_SIG_free(sig); |
125 | if (b != NULL) | 125 | sshbuf_free(b); |
126 | sshbuf_free(b); | ||
127 | return ret; | 126 | return ret; |
128 | } | 127 | } |
129 | 128 | ||
@@ -209,10 +208,8 @@ ssh_dss_verify(const struct sshkey *key, | |||
209 | explicit_bzero(digest, sizeof(digest)); | 208 | explicit_bzero(digest, sizeof(digest)); |
210 | if (sig != NULL) | 209 | if (sig != NULL) |
211 | DSA_SIG_free(sig); | 210 | DSA_SIG_free(sig); |
212 | if (b != NULL) | 211 | sshbuf_free(b); |
213 | sshbuf_free(b); | 212 | free(ktype); |
214 | if (ktype != NULL) | ||
215 | free(ktype); | ||
216 | if (sigblob != NULL) { | 213 | if (sigblob != NULL) { |
217 | explicit_bzero(sigblob, len); | 214 | explicit_bzero(sigblob, len); |
218 | free(sigblob); | 215 | free(sigblob); |