bool premature)
{
struct SSHPROTO *sftp = conn->data->reqdata.proto.ssh;
+ CURLcode rc = CURLE_OK;
(void)premature; /* not used */
Curl_safefree(sftp->path);
/* Before we shut down, see if there are any post-quote commands to send: */
if(!status && !premature && conn->data->set.postquote) {
- CURLcode result = sftp_sendquote(conn, conn->data->set.postquote);
-
- if (result != CURLE_OK)
- return result;
+ rc = sftp_sendquote(conn, conn->data->set.postquote);
}
if (sftp->sftp_handle) {
(void)status; /* unused */
- return CURLE_OK;
+ return rc;
}
/* return number of received (decrypted) bytes */