1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58: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:
Daniel Stenberg 2017-12-05 09:14:04 +01:00
parent 615edc1f73
commit 85f0133ea1
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -2516,7 +2516,7 @@ static void sftp_quote(struct connectdata *conn)
state(conn, SSH_SFTP_NEXT_QUOTE); state(conn, SSH_SFTP_NEXT_QUOTE);
return; return;
} }
if(cmd) {
/* /*
* the arguments following the command must be separated from the * the arguments following the command must be separated from the
* command with a space so we can check for it unconditionally * 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); state(conn, SSH_SFTP_CLOSE);
sshc->nextstate = SSH_NO_STATE; sshc->nextstate = SSH_NO_STATE;
sshc->actualcode = CURLE_QUOTE_ERROR; sshc->actualcode = CURLE_QUOTE_ERROR;
return;
}
if(!sshc->quote_item) {
state(conn, SSH_SFTP_GETINFO);
}
} }
static void sftp_quote_stat(struct connectdata *conn) static void sftp_quote_stat(struct connectdata *conn)