comparison svr-authpubkey.c @ 1598:252b406d0e9a

avoid leak of pubkey_options
author Matt Johnston <matt@ucc.asn.au>
date Tue, 06 Mar 2018 22:18:20 +0800
parents 2f64cb3d3007
children dc7c9fdb3716
comparison
equal deleted inserted replaced
1597:8f7b6f75aa58 1598:252b406d0e9a
165 } 165 }
166 if (key) { 166 if (key) {
167 sign_key_free(key); 167 sign_key_free(key);
168 key = NULL; 168 key = NULL;
169 } 169 }
170 /* Retain pubkey options only if auth succeeded */
171 if (!ses.authstate.authdone) {
172 svr_pubkey_options_cleanup();
173 }
170 TRACE(("leave pubkeyauth")) 174 TRACE(("leave pubkeyauth"))
171 } 175 }
172 176
173 /* Reply that the key is valid for auth, this is sent when the user sends 177 /* Reply that the key is valid for auth, this is sent when the user sends
174 * a straight copy of their pubkey to test, to avoid having to perform 178 * a straight copy of their pubkey to test, to avoid having to perform