Mercurial > dropbear
comparison svr-authpubkeyoptions.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 | 2d450c1056e3 |
children | e37f98ea4f24 |
comparison
equal
deleted
inserted
replaced
1597:8f7b6f75aa58 | 1598:252b406d0e9a |
---|---|
111 if (ses.authstate.pubkey_options) { | 111 if (ses.authstate.pubkey_options) { |
112 if (ses.authstate.pubkey_options->forced_command) { | 112 if (ses.authstate.pubkey_options->forced_command) { |
113 m_free(ses.authstate.pubkey_options->forced_command); | 113 m_free(ses.authstate.pubkey_options->forced_command); |
114 } | 114 } |
115 m_free(ses.authstate.pubkey_options); | 115 m_free(ses.authstate.pubkey_options); |
116 ses.authstate.pubkey_options = NULL; | |
117 } | 116 } |
118 } | 117 } |
119 | 118 |
120 /* helper for svr_add_pubkey_options. returns DROPBEAR_SUCCESS if the option is matched, | 119 /* helper for svr_add_pubkey_options. returns DROPBEAR_SUCCESS if the option is matched, |
121 and increments the options_buf */ | 120 and increments the options_buf */ |