diff options
Diffstat (limited to 'auth2-hostbased.c')
-rw-r--r-- | auth2-hostbased.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth2-hostbased.c b/auth2-hostbased.c index 63fe9ae65..92758b38c 100644 --- a/auth2-hostbased.c +++ b/auth2-hostbased.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2-hostbased.c,v 1.30 2017/05/30 14:29:59 markus Exp $ */ | 1 | /* $OpenBSD: auth2-hostbased.c,v 1.31 2017/06/24 06:34:38 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -137,7 +137,7 @@ userauth_hostbased(struct ssh *ssh) | |||
137 | sshbuf_dump(b, stderr); | 137 | sshbuf_dump(b, stderr); |
138 | #endif | 138 | #endif |
139 | 139 | ||
140 | pubkey_auth_info(authctxt, key, | 140 | auth2_record_info(authctxt, |
141 | "client user \"%.100s\", client host \"%.100s\"", cuser, chost); | 141 | "client user \"%.100s\", client host \"%.100s\"", cuser, chost); |
142 | 142 | ||
143 | /* test for allowed key and correct signature */ | 143 | /* test for allowed key and correct signature */ |
@@ -147,11 +147,11 @@ userauth_hostbased(struct ssh *ssh) | |||
147 | sshbuf_ptr(b), sshbuf_len(b), ssh->compat)) == 0) | 147 | sshbuf_ptr(b), sshbuf_len(b), ssh->compat)) == 0) |
148 | authenticated = 1; | 148 | authenticated = 1; |
149 | 149 | ||
150 | auth2_record_key(authctxt, authenticated, key); | ||
150 | sshbuf_free(b); | 151 | sshbuf_free(b); |
151 | done: | 152 | done: |
152 | debug2("%s: authenticated %d", __func__, authenticated); | 153 | debug2("%s: authenticated %d", __func__, authenticated); |
153 | if (key != NULL) | 154 | sshkey_free(key); |
154 | sshkey_free(key); | ||
155 | free(pkalg); | 155 | free(pkalg); |
156 | free(pkblob); | 156 | free(pkblob); |
157 | free(cuser); | 157 | free(cuser); |