summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-ecdsa.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2012-01-08 13:17:11 +0000
committermiod <miod@openbsd.org>2012-01-08 13:17:11 +0000
commit39a92b624a87405e1f4656f4580ec1df857806d8 (patch)
tree0f3bcfd19fe76adfa0ba2395cf4ce5f26a0b16dd /usr.bin/ssh/ssh-ecdsa.c
parentRemove usb_event_cookie_t type and instances of it found in various structs; (diff)
downloadwireguard-openbsd-39a92b624a87405e1f4656f4580ec1df857806d8.tar.xz
wireguard-openbsd-39a92b624a87405e1f4656f4580ec1df857806d8.zip
Fix memory leak in ssh_ecdsa_verify(); from Loganaden Velvindron, ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh-ecdsa.c')
-rw-r--r--usr.bin/ssh/ssh-ecdsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-ecdsa.c b/usr.bin/ssh/ssh-ecdsa.c
index ae944774ef7..42e81c7917e 100644
--- a/usr.bin/ssh/ssh-ecdsa.c
+++ b/usr.bin/ssh/ssh-ecdsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-ecdsa.c,v 1.4 2010/09/10 01:04:10 djm Exp $ */
+/* $OpenBSD: ssh-ecdsa.c,v 1.5 2012/01/08 13:17:11 miod Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2010 Damien Miller. All rights reserved.
@@ -141,6 +141,7 @@ ssh_ecdsa_verify(const Key *key, const u_char *signature, u_int signaturelen,
buffer_get_bignum2(&bb, sig->s);
if (buffer_len(&bb) != 0)
fatal("%s: remaining bytes in inner sigblob", __func__);
+ buffer_free(&bb);
/* clean up */
memset(sigblob, 0, len);