summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshconnect2.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2000-04-27 08:01:25 +0000
committermarkus <markus@openbsd.org>2000-04-27 08:01:25 +0000
commitaa7be5ee6d88e3398c87044e0cda87d25eca2dd5 (patch)
treee447c25ec4d5bf6a285169f441f17a7430af80ca /usr.bin/ssh/sshconnect2.c
parentSome PHYs does not report any OUI/MODEL combo, recognize another such case (diff)
downloadwireguard-openbsd-aa7be5ee6d88e3398c87044e0cda87d25eca2dd5.tar.xz
wireguard-openbsd-aa7be5ee6d88e3398c87044e0cda87d25eca2dd5.zip
xfree DSA blobs
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r--usr.bin/ssh/sshconnect2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c
index e29eb4906a7..1b64fb9e47e 100644
--- a/usr.bin/ssh/sshconnect2.c
+++ b/usr.bin/ssh/sshconnect2.c
@@ -28,7 +28,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect2.c,v 1.2 2000/04/26 21:33:53 markus Exp $");
+RCSID("$OpenBSD: sshconnect2.c,v 1.3 2000/04/27 08:01:27 markus Exp $");
#include <openssl/bn.h>
#include <openssl/rsa.h>
@@ -231,6 +231,7 @@ ssh_kex2(char *host, struct sockaddr *hostaddr)
dh_server_pub,
shared_secret
);
+ xfree(server_host_key_blob);
buffer_free(client_kexinit);
buffer_free(server_kexinit);
xfree(client_kexinit);
@@ -341,6 +342,7 @@ ssh2_try_pubkey(char *filename,
buffer_put_char(&b, 1);
buffer_put_cstring(&b, KEX_DSS);
buffer_put_string(&b, blob, bloblen);
+ xfree(blob);
/* generate signature */
dsa_sign(k, &signature, &slen, buffer_ptr(&b), buffer_len(&b));