- djm@cvs.openbsd.org 2011/05/06 02:05:41

[sshconnect2.c]
     fix memory leak; bz#1849 ok dtucker@
This commit is contained in:
Damien Miller 2011-05-15 08:36:59 +10:00
parent 58a77e2eac
commit 78c40c321b
2 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,9 @@
[sftp.1] [sftp.1]
mention that IPv6 addresses must be enclosed in square brackets; mention that IPv6 addresses must be enclosed in square brackets;
bz#1845 bz#1845
- djm@cvs.openbsd.org 2011/05/06 02:05:41
[sshconnect2.c]
fix memory leak; bz#1849 ok dtucker@
20110510 20110510
- (dtucker) [openbsd-compat/openssl-compat.{c,h}] Bug #1882: fix - (dtucker) [openbsd-compat/openssl-compat.{c,h}] Bug #1882: fix

View File

@ -1,4 +1,4 @@
/* $OpenBSD: sshconnect2.c,v 1.186 2010/11/29 23:45:51 djm Exp $ */ /* $OpenBSD: sshconnect2.c,v 1.187 2011/05/06 02:05:41 djm Exp $ */
/* /*
* Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2008 Damien Miller. All rights reserved. * Copyright (c) 2008 Damien Miller. All rights reserved.
@ -1888,9 +1888,12 @@ authmethod_get(char *authlist)
authmethod_is_enabled(current)) { authmethod_is_enabled(current)) {
debug3("authmethod_is_enabled %s", name); debug3("authmethod_is_enabled %s", name);
debug("Next authentication method: %s", name); debug("Next authentication method: %s", name);
xfree(name);
return current; return current;
} }
} }
if (name != NULL)
xfree(name);
} }
static char * static char *