diff options
author | djm <djm> | 2012-02-10 21:17:27 +0000 |
---|---|---|
committer | djm <djm> | 2012-02-10 21:17:27 +0000 |
commit | 1523fc617bffd3c546e172407d569e4f12cb1412 (patch) | |
tree | 1ad6440b5cc70e1f3c0b668886da9f3b40a0d0dc /ssh-ecdsa.c | |
parent | ba4f8b3d0c07dc77fb88340b51fbc1c2f652101b (diff) | |
download | openssh-1523fc617bffd3c546e172407d569e4f12cb1412.tar.gz |
- miod@cvs.openbsd.org 2012/01/08 13:17:11
[ssh-ecdsa.c]
Fix memory leak in ssh_ecdsa_verify(); from Loganaden Velvindron,
ok markus@
Diffstat (limited to 'ssh-ecdsa.c')
-rw-r--r-- | ssh-ecdsa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh-ecdsa.c b/ssh-ecdsa.c index c8276b46..085468ee 100644 --- a/ssh-ecdsa.c +++ b/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. @@ -145,6 +145,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); |