mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
avoid leak of pubkey_options
This commit is contained in:
@@ -167,6 +167,10 @@ out:
|
||||
sign_key_free(key);
|
||||
key = NULL;
|
||||
}
|
||||
/* Retain pubkey options only if auth succeeded */
|
||||
if (!ses.authstate.authdone) {
|
||||
svr_pubkey_options_cleanup();
|
||||
}
|
||||
TRACE(("leave pubkeyauth"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user