diff options
author | Damien Miller <djm@mindrot.org> | 2004-01-21 11:02:50 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-01-21 11:02:50 +1100 |
commit | fb1310eded0788f106dc7e1f113cc75e1206cb60 (patch) | |
tree | cca2dacd20182354f8b704f62ab03a16a27a9e8f /auth2-pubkey.c | |
parent | a04ad496f65ba1c0b6c71c13943ede2711464bc3 (diff) |
- markus@cvs.openbsd.org 2004/01/19 21:25:15
[auth2-hostbased.c auth2-pubkey.c serverloop.c ssh-keysign.c sshconnect2.c]
fix mem leaks; some fixes from Pete Flugstad; tested dtucker@
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r-- | auth2-pubkey.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c index c28571ab6..3063eecc3 100644 --- a/auth2-pubkey.c +++ b/auth2-pubkey.c | |||
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth2-pubkey.c,v 1.5 2003/11/04 08:54:09 djm Exp $"); | 26 | RCSID("$OpenBSD: auth2-pubkey.c,v 1.6 2004/01/19 21:25:15 markus Exp $"); |
27 | 27 | ||
28 | #include "ssh2.h" | 28 | #include "ssh2.h" |
29 | #include "xmalloc.h" | 29 | #include "xmalloc.h" |
@@ -123,9 +123,9 @@ userauth_pubkey(Authctxt *authctxt) | |||
123 | authenticated = 0; | 123 | authenticated = 0; |
124 | if (PRIVSEP(user_key_allowed(authctxt->pw, key)) && | 124 | if (PRIVSEP(user_key_allowed(authctxt->pw, key)) && |
125 | PRIVSEP(key_verify(key, sig, slen, buffer_ptr(&b), | 125 | PRIVSEP(key_verify(key, sig, slen, buffer_ptr(&b), |
126 | buffer_len(&b))) == 1) | 126 | buffer_len(&b))) == 1) |
127 | authenticated = 1; | 127 | authenticated = 1; |
128 | buffer_clear(&b); | 128 | buffer_free(&b); |
129 | xfree(sig); | 129 | xfree(sig); |
130 | } else { | 130 | } else { |
131 | debug("test whether pkalg/pkblob are acceptable"); | 131 | debug("test whether pkalg/pkblob are acceptable"); |