Mercurial > dropbear
comparison svr-authpubkeyoptions.c @ 1881:d39cfedaf015
extract pubkey_info when seuccesfully auth with a key and free it in the cleanup function
author | HansH111 <hans@atbas.org> |
---|---|
date | Sun, 13 Mar 2022 17:38:13 +0000 |
parents | 587c76726b5f |
children |
comparison
equal
deleted
inserted
replaced
1880:4c1560627693 | 1881:d39cfedaf015 |
---|---|
112 if (ses.authstate.pubkey_options) { | 112 if (ses.authstate.pubkey_options) { |
113 if (ses.authstate.pubkey_options->forced_command) { | 113 if (ses.authstate.pubkey_options->forced_command) { |
114 m_free(ses.authstate.pubkey_options->forced_command); | 114 m_free(ses.authstate.pubkey_options->forced_command); |
115 } | 115 } |
116 m_free(ses.authstate.pubkey_options); | 116 m_free(ses.authstate.pubkey_options); |
117 } | |
118 if (ses.authstate.pubkey_info) { | |
119 m_free(ses.authstate.pubkey_info); | |
117 } | 120 } |
118 } | 121 } |
119 | 122 |
120 /* helper for svr_add_pubkey_options. returns DROPBEAR_SUCCESS if the option is matched, | 123 /* helper for svr_add_pubkey_options. returns DROPBEAR_SUCCESS if the option is matched, |
121 and increments the options_buf */ | 124 and increments the options_buf */ |