summaryrefslogtreecommitdiff
path: root/ssh-dss.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-11-12 11:03:35 +1100
committerDamien Miller <djm@mindrot.org>2001-11-12 11:03:35 +1100
commit36e603db86fbdc7a4f241efd7184dbfee263b701 (patch)
tree658713b3331af469e6d86c1616580c31065e6801 /ssh-dss.c
parent9af8c3c226b591f6cbb93eefcf2d56c9ddb3a682 (diff)
downloadopenssh-git-36e603db86fbdc7a4f241efd7184dbfee263b701.tar.gz
- markus@cvs.openbsd.org 2001/11/07 22:10:28
[ssh-dss.c ssh-rsa.c] missing free and sync dss/rsa code.
Diffstat (limited to 'ssh-dss.c')
-rw-r--r--ssh-dss.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/ssh-dss.c b/ssh-dss.c
index 22fffa02..9f3a2870 100644
--- a/ssh-dss.c
+++ b/ssh-dss.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-dss.c,v 1.8 2001/09/17 19:27:15 stevesk Exp $");
+RCSID("$OpenBSD: ssh-dss.c,v 1.9 2001/11/07 22:10:28 markus Exp $");
#include <openssl/bn.h>
#include <openssl/evp.h>
@@ -138,17 +138,19 @@ ssh_dss_verify(
if (strcmp("ssh-dss", ktype) != 0) {
error("ssh_dss_verify: cannot handle type %s", ktype);
buffer_free(&b);
+ xfree(ktype);
return -1;
}
+ xfree(ktype);
sigblob = buffer_get_string(&b, &len);
rlen = buffer_len(&b);
+ buffer_free(&b);
if(rlen != 0) {
- error("remaining bytes in signature %d", rlen);
- buffer_free(&b);
+ error("ssh_dss_verify: "
+ "remaining bytes in signature %d", rlen);
+ xfree(sigblob);
return -1;
}
- buffer_free(&b);
- xfree(ktype);
}
if (len != SIGBLOB_LEN) {