diff options
author | 2020-12-04 02:29:25 +0000 | |
---|---|---|
committer | 2020-12-04 02:29:25 +0000 | |
commit | 7bc0c69b7f25a5056d045fc8d31b54a3bd6a4ce7 (patch) | |
tree | d039b8fcc992a00e43dd5559610b76e3b9b4ff80 | |
parent | fix minor memleak of kex->hostkey_alg on rekex (diff) | |
download | wireguard-openbsd-7bc0c69b7f25a5056d045fc8d31b54a3bd6a4ce7.tar.xz wireguard-openbsd-7bc0c69b7f25a5056d045fc8d31b54a3bd6a4ce7.zip |
memleak of DH public bignum; found with libfuzzer
-rw-r--r-- | usr.bin/ssh/kexdh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/kexdh.c b/usr.bin/ssh/kexdh.c index d613f76f3e4..c0958a011bb 100644 --- a/usr.bin/ssh/kexdh.c +++ b/usr.bin/ssh/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. * @@ -187,6 +187,7 @@ kex_dh_dec(struct kex *kex, const struct sshbuf *dh_blob, *shared_secretp = buf; buf = NULL; out: + BN_free(dh_pub); DH_free(kex->dh); kex->dh = NULL; sshbuf_free(buf); |