mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-23 13:55:13 +02:00
upstream: memleak of DH public bignum; found with libfuzzer
OpenBSD-Commit-ID: 0e913b542c3764b100b1571fdb0d0e5cc086fe97
This commit is contained in:
parent
553b90feed
commit
3b98b6e27f
3
kexdh.c
3
kexdh.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: kexdh.c,v 1.33 2020/05/08 05:13:14 djm Exp $ */
|
/* $OpenBSD: kexdh.c,v 1.34 2020/12/04 02:29:25 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2019 Markus Friedl. All rights reserved.
|
* Copyright (c) 2019 Markus Friedl. All rights reserved.
|
||||||
*
|
*
|
||||||
@ -194,6 +194,7 @@ kex_dh_dec(struct kex *kex, const struct sshbuf *dh_blob,
|
|||||||
*shared_secretp = buf;
|
*shared_secretp = buf;
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
out:
|
out:
|
||||||
|
BN_free(dh_pub);
|
||||||
DH_free(kex->dh);
|
DH_free(kex->dh);
|
||||||
kex->dh = NULL;
|
kex->dh = NULL;
|
||||||
sshbuf_free(buf);
|
sshbuf_free(buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user