summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/smb.c
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2019-07-18 16:27:13 +0300
committerdartraiden <wowemuh@gmail.com>2019-07-18 16:28:43 +0300
commitfed632f293b2ac474f5da2d65f35c92867bdaebc (patch)
tree7c9c7f9077c756f09b9bc113cf3d706ac153e62a /libs/libcurl/src/smb.c
parent9451639c7300d806afe81ef5dc680f8f4472f6f8 (diff)
libcurl: update to 7.65.2
Diffstat (limited to 'libs/libcurl/src/smb.c')
-rw-r--r--libs/libcurl/src/smb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/libcurl/src/smb.c b/libs/libcurl/src/smb.c
index 76c99a2301..870244cb72 100644
--- a/libs/libcurl/src/smb.c
+++ b/libs/libcurl/src/smb.c
@@ -785,6 +785,8 @@ static CURLcode smb_request_state(struct connectdata *conn, bool *done)
case SMB_OPEN:
if(h->status || smbc->got < sizeof(struct smb_nt_create_response)) {
req->result = CURLE_REMOTE_FILE_NOT_FOUND;
+ if(h->status == smb_swap32(SMB_ERR_NOACCESS))
+ req->result = CURLE_REMOTE_ACCESS_DENIED;
next_state = SMB_TREE_DISCONNECT;
break;
}
@@ -957,7 +959,6 @@ static CURLcode smb_do(struct connectdata *conn, bool *done)
static CURLcode smb_parse_url_path(struct connectdata *conn)
{
- CURLcode result = CURLE_OK;
struct Curl_easy *data = conn->data;
struct smb_request *req = data->req.protop;
struct smb_conn *smbc = &conn->proto.smbc;
@@ -965,7 +966,8 @@ static CURLcode smb_parse_url_path(struct connectdata *conn)
char *slash;
/* URL decode the path */
- result = Curl_urldecode(data, data->state.up.path, 0, &path, NULL, TRUE);
+ CURLcode result = Curl_urldecode(data, data->state.up.path, 0, &path, NULL,
+ TRUE);
if(result)
return result;