Mercurial > dropbear
comparison svr-authpubkeyoptions.c @ 1173:d734fe76b72f coverity
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 23 Nov 2015 23:04:48 +0800 |
parents | 5709b15a1b57 |
children | 750ec4ec4cbe ab06e093d1e1 |
comparison
equal
deleted
inserted
replaced
1144:624fc24cfae5 | 1173:d734fe76b72f |
---|---|
89 } | 89 } |
90 | 90 |
91 /* Set chansession command to the one forced | 91 /* Set chansession command to the one forced |
92 * by any 'command' public key option. */ | 92 * by any 'command' public key option. */ |
93 void svr_pubkey_set_forced_command(struct ChanSess *chansess) { | 93 void svr_pubkey_set_forced_command(struct ChanSess *chansess) { |
94 if (ses.authstate.pubkey_options) { | 94 if (ses.authstate.pubkey_options && ses.authstate.pubkey_options->forced_command) { |
95 if (chansess->cmd) { | 95 if (chansess->cmd) { |
96 /* original_command takes ownership */ | 96 /* original_command takes ownership */ |
97 chansess->original_command = chansess->cmd; | 97 chansess->original_command = chansess->cmd; |
98 } else { | 98 } else { |
99 chansess->original_command = m_strdup(""); | 99 chansess->original_command = m_strdup(""); |