mirror of
https://github.com/clearml/dropbear
synced 2025-03-03 18:52:00 +00:00
fix leak in option handling
This commit is contained in:
parent
e9edbe8bb2
commit
ed4c38ba46
@ -168,6 +168,12 @@ int svr_add_pubkey_options(buffer *options_buf, int line_num, const char* filena
|
||||
if (match_option(options_buf, "command=\"") == DROPBEAR_SUCCESS) {
|
||||
int escaped = 0;
|
||||
const unsigned char* command_start = buf_getptr(options_buf, 0);
|
||||
|
||||
if (ses.authstate.pubkey_options->forced_command) {
|
||||
/* multiple command= options */
|
||||
goto bad_option;
|
||||
}
|
||||
|
||||
while (options_buf->pos < options_buf->len) {
|
||||
const char c = buf_getbyte(options_buf);
|
||||
if (!escaped && c == '"') {
|
||||
|
Loading…
Reference in New Issue
Block a user