summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-05 02:05:21 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-05 02:05:21 +0000
commit5ba23b39bf2d8d2c9c0747b9a66f356180306691 (patch)
tree402e41d5b01532ef4579ba5eaccd212433415510 /kex.c
parent8e312f3db05059499cf6655663ce31e73d508817 (diff)
downloadopenssh-git-5ba23b39bf2d8d2c9c0747b9a66f356180306691.tar.gz
- markus@cvs.openbsd.org 2001/04/04 23:09:18
[dh.c kex.c packet.c] clear+free keys,iv for rekeying. + fix DH mem leaks. ok niels@
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kex.c b/kex.c
index 0720c073..39f037b7 100644
--- a/kex.c
+++ b/kex.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: kex.c,v 1.31 2001/04/04 22:04:34 markus Exp $");
+RCSID("$OpenBSD: kex.c,v 1.32 2001/04/04 23:09:18 markus Exp $");
#include <openssl/crypto.h>
@@ -136,10 +136,13 @@ kex_finish(Kex *kex)
debug("waiting for SSH2_MSG_NEWKEYS");
packet_read_expect(&plen, SSH2_MSG_NEWKEYS);
debug("SSH2_MSG_NEWKEYS received");
+
kex->done = 1;
buffer_clear(&kex->peer);
/* buffer_clear(&kex->my); */
kex->flags &= ~KEX_INIT_SENT;
+ xfree(kex->name);
+ kex->name = NULL;
}
void