diff options
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: kex.c,v 1.31 2001/04/04 22:04:34 markus Exp $"); | 26 | RCSID("$OpenBSD: kex.c,v 1.32 2001/04/04 23:09:18 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/crypto.h> | 28 | #include <openssl/crypto.h> |
29 | 29 | ||
@@ -136,10 +136,13 @@ kex_finish(Kex *kex) | |||
136 | debug("waiting for SSH2_MSG_NEWKEYS"); | 136 | debug("waiting for SSH2_MSG_NEWKEYS"); |
137 | packet_read_expect(&plen, SSH2_MSG_NEWKEYS); | 137 | packet_read_expect(&plen, SSH2_MSG_NEWKEYS); |
138 | debug("SSH2_MSG_NEWKEYS received"); | 138 | debug("SSH2_MSG_NEWKEYS received"); |
139 | |||
139 | kex->done = 1; | 140 | kex->done = 1; |
140 | buffer_clear(&kex->peer); | 141 | buffer_clear(&kex->peer); |
141 | /* buffer_clear(&kex->my); */ | 142 | /* buffer_clear(&kex->my); */ |
142 | kex->flags &= ~KEX_INIT_SENT; | 143 | kex->flags &= ~KEX_INIT_SENT; |
144 | xfree(kex->name); | ||
145 | kex->name = NULL; | ||
143 | } | 146 | } |
144 | 147 | ||
145 | void | 148 | void |