mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
libssh: remove dead code in sftp_qoute
... by removing a superfluous NULL pointer check that also confuses Coverity. Fixes #2143 Closes #2153
This commit is contained in:
parent
615edc1f73
commit
85f0133ea1
@ -2516,7 +2516,7 @@ static void sftp_quote(struct connectdata *conn)
|
||||
state(conn, SSH_SFTP_NEXT_QUOTE);
|
||||
return;
|
||||
}
|
||||
if(cmd) {
|
||||
|
||||
/*
|
||||
* the arguments following the command must be separated from the
|
||||
* command with a space so we can check for it unconditionally
|
||||
@ -2642,12 +2642,6 @@ static void sftp_quote(struct connectdata *conn)
|
||||
state(conn, SSH_SFTP_CLOSE);
|
||||
sshc->nextstate = SSH_NO_STATE;
|
||||
sshc->actualcode = CURLE_QUOTE_ERROR;
|
||||
return;
|
||||
}
|
||||
|
||||
if(!sshc->quote_item) {
|
||||
state(conn, SSH_SFTP_GETINFO);
|
||||
}
|
||||
}
|
||||
|
||||
static void sftp_quote_stat(struct connectdata *conn)
|
||||
|
Loading…
Reference in New Issue
Block a user