diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-11-30 21:28:22 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-11-30 21:39:04 +0000 |
commit | c8996bab1c95e292eff64fa848cf79131a01aeec (patch) | |
tree | e887499603f566f4a6b5d6334f8f0c26ccfffc6b /src | |
parent | b359badd491eba79289202a32a90ad04f84edc75 (diff) |
curl tool: Exclude SMB from the protocol redirect
As local files could be accessed through \\localhost\c$.
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_cfgable.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c index bd8707e57..fd62e4b24 100644 --- a/src/tool_cfgable.c +++ b/src/tool_cfgable.c @@ -36,8 +36,9 @@ void config_init(struct OperationConfig* config) config->maxredirs = DEFAULT_MAXREDIRS; config->proto = CURLPROTO_ALL; /* FIXME: better to read from library */ config->proto_present = FALSE; - config->proto_redir = - CURLPROTO_ALL & ~(CURLPROTO_FILE|CURLPROTO_SCP); /* not FILE or SCP */ + config->proto_redir = CURLPROTO_ALL & /* All except FILE, SCP and SMB */ + ~(CURLPROTO_FILE | CURLPROTO_SCP | CURLPROTO_SMB | + CURLPROTO_SMBS); config->proto_redir_present = FALSE; } |