summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/auth2-hostbased.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-01-19 21:25:16 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-01-19 21:25:16 +0000
commit619e62d5c5c1e5c61f637513ec8cab3cc0ca047b (patch)
treebd91e1788d8976dff126b44d69129c0d508a88cf /usr.bin/ssh/auth2-hostbased.c
parent1029b2dbf36269504c4a6169ef1c3a55f8dfc587 (diff)
fix mem leaks; some fixes from Pete Flugstad; tested dtucker@
Diffstat (limited to 'usr.bin/ssh/auth2-hostbased.c')
-rw-r--r--usr.bin/ssh/auth2-hostbased.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth2-hostbased.c b/usr.bin/ssh/auth2-hostbased.c
index 505d3eff458..1111ed67a64 100644
--- a/usr.bin/ssh/auth2-hostbased.c
+++ b/usr.bin/ssh/auth2-hostbased.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth2-hostbased.c,v 1.5 2003/06/24 08:23:46 markus Exp $");
+RCSID("$OpenBSD: auth2-hostbased.c,v 1.6 2004/01/19 21:25:15 markus Exp $");
#include "ssh2.h"
#include "xmalloc.h"
@@ -114,7 +114,7 @@ userauth_hostbased(Authctxt *authctxt)
buffer_len(&b))) == 1)
authenticated = 1;
- buffer_clear(&b);
+ buffer_free(&b);
done:
debug2("userauth_hostbased: authenticated %d", authenticated);
if (key != NULL)