diff options
Diffstat (limited to 'kexgexs.c')
-rw-r--r-- | kexgexs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kexgexs.c,v 1.33 2018/04/10 00:10:49 djm Exp $ */ | 1 | /* $OpenBSD: kexgexs.c,v 1.35 2018/10/04 00:04:41 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Niels Provos. All rights reserved. | 3 | * Copyright (c) 2000 Niels Provos. All rights reserved. |
4 | * Copyright (c) 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2001 Markus Friedl. All rights reserved. |
@@ -240,6 +240,7 @@ input_kex_dh_gex_init(int type, u_int32_t seq, struct ssh *ssh) | |||
240 | if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) | 240 | if ((r = kex_derive_keys_bn(ssh, hash, hashlen, shared_secret)) == 0) |
241 | r = kex_send_newkeys(ssh); | 241 | r = kex_send_newkeys(ssh); |
242 | out: | 242 | out: |
243 | explicit_bzero(hash, sizeof(hash)); | ||
243 | DH_free(kex->dh); | 244 | DH_free(kex->dh); |
244 | kex->dh = NULL; | 245 | kex->dh = NULL; |
245 | BN_clear_free(dh_client_pub); | 246 | BN_clear_free(dh_client_pub); |