diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-11-30 20:56:01 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-11-30 20:42:05 +0000 |
commit | ce2d84b3bb292f4180e317e5ba511074aa55663c (patch) | |
tree | a4802eb2f3b5596523d43efe787fb18b96e11afc /lib | |
parent | 6f2419342f8408120486e914da9aa7f58cb62ac2 (diff) |
libcurl: Exclude SMB from the protocol redirect
As local files could be accessed through \\localhost\c$.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -561,8 +561,9 @@ CURLcode Curl_init_userdefined(struct UserDefined *set) define since we internally only use the lower 16 bits for the passed in bitmask to not conflict with the private bits */ set->allowed_protocols = CURLPROTO_ALL; - set->redir_protocols = - CURLPROTO_ALL & ~(CURLPROTO_FILE|CURLPROTO_SCP); /* not FILE or SCP */ + set->redir_protocols = CURLPROTO_ALL & /* All except FILE, SCP and SMB */ + ~(CURLPROTO_FILE | CURLPROTO_SCP | CURLPROTO_SMB | + CURLPROTO_SMBS); #if defined(HAVE_GSSAPI) || defined(USE_WINDOWS_SSPI) /* |