summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-rsa.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-11-07 22:10:28 +0000
committermarkus <markus@openbsd.org>2001-11-07 22:10:28 +0000
commitbe77cb391bb610f30d659da42ba3f4991ef81b96 (patch)
tree1413918b873931787939c80c1875f3aa4f337dd2 /usr.bin/ssh/ssh-rsa.c
parentssh_rsa_sign/verify: SSH_BUG_SIGBLOB not supported (diff)
downloadwireguard-openbsd-be77cb391bb610f30d659da42ba3f4991ef81b96.tar.xz
wireguard-openbsd-be77cb391bb610f30d659da42ba3f4991ef81b96.zip
missing free and sync dss/rsa code.
Diffstat (limited to 'usr.bin/ssh/ssh-rsa.c')
-rw-r--r--usr.bin/ssh/ssh-rsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-rsa.c b/usr.bin/ssh/ssh-rsa.c
index 27a6c5a533f..6fd47287c9e 100644
--- a/usr.bin/ssh/ssh-rsa.c
+++ b/usr.bin/ssh/ssh-rsa.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-rsa.c,v 1.11 2001/11/07 21:40:21 markus Exp $");
+RCSID("$OpenBSD: ssh-rsa.c,v 1.12 2001/11/07 22:10:28 markus Exp $");
#include <openssl/evp.h>
#include <openssl/err.h>
@@ -151,14 +151,14 @@ ssh_rsa_verify(
rlen = buffer_len(&b);
buffer_free(&b);
if(rlen != 0) {
- xfree(sigblob);
error("ssh_rsa_verify: remaining bytes in signature %d", rlen);
+ xfree(sigblob);
return -1;
}
nid = (datafellows & SSH_BUG_RSASIGMD5) ? NID_md5 : NID_sha1;
if ((evp_md = EVP_get_digestbynid(nid)) == NULL) {
- xfree(sigblob);
error("ssh_rsa_verify: EVP_get_digestbynid %d failed", nid);
+ xfree(sigblob);
return -1;
}
dlen = evp_md->md_size;