curl/lib
Daniel Stenberg 74a169575d
protocol: disable connection reuse for SMB(S)
Connections should only be reused when using the same "share" (and
perhaps some additional conditions), but instead of fixing this flaw,
this change completely disables connection reuse for SMB. This protocol
is about to get dropped soon anyway.

Reported-by: Osama Hamad
Closes #21238
2026-04-07 13:23:01 +02:00
..
curlx lib: reserve 'result' for CURLcode 2026-04-06 23:12:06 +02:00
vauth tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
vquic spelling: fix typos 2026-04-01 22:50:12 +02:00
vssh libssh: fix 64-bit printf mask for mingw-w64 <=6.0.0 2026-04-05 16:45:30 +02:00
vtls lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
.gitignore
altsvc.c altsvc: cap the list at 5,000 entries 2026-04-01 12:05:47 +02:00
altsvc.h altsvc: cap the list at 5,000 entries 2026-04-01 12:05:47 +02:00
amigaos.c
amigaos.h
arpa_telnet.h
asyn-ares.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
asyn-base.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
asyn-thrdd.c asyn-thrdd: item cleanup using resolv_id 2026-04-02 13:15:53 +02:00
asyn.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
bufq.c
bufq.h
bufref.c
bufref.h
cf-dns.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
cf-dns.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
cf-h1-proxy.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
cf-h1-proxy.h
cf-h2-proxy.c lib: replace PRI*32 printf masks with C89 ones 2026-04-07 11:58:30 +02:00
cf-h2-proxy.h
cf-haproxy.c
cf-haproxy.h
cf-https-connect.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
cf-https-connect.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
cf-ip-happy.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
cf-ip-happy.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
cf-socket.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
cf-socket.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
cfilters.c cfilters: fix Curl_pollset_poll() return code mixup 2026-04-06 22:09:03 +02:00
cfilters.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
CMakeLists.txt cmake: use AIX built-in variable (with CMake 4.0+) 2026-03-30 13:05:17 +02:00
config-mac.h src: drop detecting and redefining system symbol ftruncate 2026-03-30 13:46:14 +02:00
config-os400.h build: drop redundant HAVE_PTHREAD_H guard 2026-03-30 18:57:07 +02:00
config-riscos.h src: drop detecting and redefining system symbol ftruncate 2026-03-30 13:46:14 +02:00
config-win32.h src: drop detecting and redefining system symbol ftruncate 2026-03-30 13:46:14 +02:00
conncache.c lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
conncache.h lib: reserve 'result' for CURLcode 2026-04-06 23:12:06 +02:00
connect.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
connect.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
content_encoding.c
content_encoding.h
cookie.c cookie: fix rejection when tabs in value 2026-04-01 10:45:05 +02:00
cookie.h
cshutdn.c
cshutdn.h
curl_addrinfo.c cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
curl_addrinfo.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
curl_config-cmake.h.in curl_ntlm_core: use wolfCrypt DES API with wolfSSL 2026-04-07 11:58:30 +02:00
curl_ctype.h
curl_endian.c
curl_endian.h
curl_fnmatch.c
curl_fnmatch.h
curl_fopen.c fopen: for temp files, inherit permissions only for owner 2026-03-30 18:39:12 +02:00
curl_fopen.h
curl_get_line.c
curl_get_line.h
curl_gethostname.c
curl_gethostname.h
curl_gssapi.c
curl_gssapi.h
curl_hmac.h lib: accept larger input to md5/hmac/sha256/sha512 functions 2026-03-31 17:19:56 +02:00
curl_ldap.h
curl_md4.h
curl_md5.h lib: accept larger input to md5/hmac/sha256/sha512 functions 2026-03-31 17:19:56 +02:00
curl_memrchr.c
curl_memrchr.h
curl_ntlm_core.c curl_ntlm_core: use wolfCrypt DES API with wolfSSL 2026-04-07 11:58:30 +02:00
curl_ntlm_core.h
curl_printf.h
curl_range.c
curl_range.h
curl_sasl.c
curl_sasl.h
curl_setup.h curl_ntlm_core: use wolfCrypt DES API with wolfSSL 2026-04-07 11:58:30 +02:00
curl_sha256.h lib: accept larger input to md5/hmac/sha256/sha512 functions 2026-03-31 17:19:56 +02:00
curl_sha512_256.c lib: accept larger input to md5/hmac/sha256/sha512 functions 2026-03-31 17:19:56 +02:00
curl_sha512_256.h
curl_share.c share: do bitshifts after the type is checked to be valid 2026-04-05 16:07:54 +02:00
curl_share.h
curl_sspi.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
curl_sspi.h
curl_threads.c lib: add thread pool and queue 2026-03-23 23:03:58 +01:00
curl_threads.h build: drop duplicate pthread.h includes 2026-03-30 13:46:14 +02:00
curl_trc.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
curl_trc.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
cw-out.c
cw-out.h
cw-pause.c
cw-pause.h
dict.c
dict.h
dllmain.c
dnscache.c dnscache: fix locking for negative caching 2026-04-03 22:27:59 +02:00
dnscache.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
doh.c doh: remove superfluous doh_req check 2026-04-04 17:10:37 +02:00
doh.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
dynhds.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
dynhds.h
easy.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
easy_lock.h build: drop redundant HAVE_PTHREAD_H guard 2026-03-30 18:57:07 +02:00
easygetopt.c
easyif.h
easyoptions.c
easyoptions.h
escape.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
escape.h
fake_addrinfo.c lib: reserve 'result' for CURLcode 2026-04-06 23:12:06 +02:00
fake_addrinfo.h
file.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
file.h
fileinfo.c
fileinfo.h
formdata.c lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
formdata.h
ftp-int.h
ftp.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
ftp.h
ftplistparser.c
ftplistparser.h
functypes.h
getenv.c
getinfo.c
getinfo.h
gopher.c
gopher.h
hash.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
hash.h
headers.c
headers.h
hmac.c lib: accept larger input to md5/hmac/sha256/sha512 functions 2026-03-31 17:19:56 +02:00
hostip.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
hostip.h spacecheck.pl: fix to check 3+ newlines in all files 2026-04-06 04:05:58 +02:00
hostip4.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
hostip6.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
hsts.c hsts: make the HSTS read callback handle name dupes 2026-04-02 18:01:20 +02:00
hsts.h hsts: accept 10K entries in the list 2026-04-02 10:22:35 +02:00
http.c lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
http.h
http1.c
http1.h
http2.c lib: replace PRI*32 printf masks with C89 ones 2026-04-07 11:58:30 +02:00
http2.h http: refactor http_on_response into sub functions 2026-03-31 23:53:45 +02:00
http_aws_sigv4.c
http_aws_sigv4.h
http_chunks.c
http_chunks.h
http_digest.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
http_digest.h
http_negotiate.c
http_negotiate.h
http_ntlm.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
http_ntlm.h
http_proxy.c
http_proxy.h
httpsrr.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
httpsrr.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
idn.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
idn.h
if2ip.c
if2ip.h
imap.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
imap.h
ldap.c
libcurl.def
libcurl.rc
libcurl.vers.in
llist.c
llist.h
macos.c
macos.h
Makefile.am Makefile.am: replace stray := with = [ci skip] 2026-04-06 02:52:08 +02:00
Makefile.inc cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
Makefile.soname
md4.c md4, md5: switch to wolfCrypt API in wolfSSL builds 2026-03-25 18:56:40 +01:00
md5.c md5: fix large size handling 2026-03-31 17:53:03 +02:00
memdebug.c lib: add thread pool and queue 2026-03-23 23:03:58 +01:00
mime.c lib: reserve 'result' for CURLcode 2026-04-06 23:12:06 +02:00
mime.h
mprintf.c
mqtt.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
mqtt.h
multi.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
multi_ev.c
multi_ev.h
multi_ntfy.c
multi_ntfy.h
multihandle.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
multiif.h
netrc.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
netrc.h netrc: remove unused parsenetrc() macro for netrc-disabled 2026-03-23 10:19:08 +01:00
noproxy.c
noproxy.h
openldap.c
optiontable.pl
parsedate.c
parsedate.h
pingpong.c
pingpong.h
pop3.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
pop3.h
progress.c lib: reserve 'result' for CURLcode 2026-04-06 23:12:06 +02:00
progress.h
protocol.c protocol: disable connection reuse for SMB(S) 2026-04-07 13:23:01 +02:00
protocol.h
psl.c
psl.h
rand.c
rand.h
ratelimit.c ratelimit: reset on start 2026-03-24 16:25:53 +01:00
ratelimit.h ratelimit: reset on start 2026-03-24 16:25:53 +01:00
request.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
request.h
rtsp.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
rtsp.h
select.c cfilters: fix Curl_pollset_poll() return code mixup 2026-04-06 22:09:03 +02:00
select.h
sendf.c sendf: fix CR detection if no LF is in the chunk 2026-04-04 22:32:54 +02:00
sendf.h
setopt.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
setopt.h
setup-os400.h
setup-vms.h
setup-win32.h
sha256.c lib: accept larger input to md5/hmac/sha256/sha512 functions 2026-03-31 17:19:56 +02:00
sigpipe.h
slist.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
slist.h
smb.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
smb.h
smtp.c lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
smtp.h
sockaddr.h
socketpair.c
socketpair.h
socks.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
socks.h
socks_gssapi.c lib: reserve 'result' for CURLcode 2026-04-06 23:12:06 +02:00
socks_sspi.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
splay.c
splay.h
strcase.c
strcase.h
strequal.c
strerror.c
strerror.h
system_win32.c
system_win32.h
telnet.c
telnet.h
tftp.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
tftp.h
thrdpool.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
thrdpool.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
thrdqueue.c lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
thrdqueue.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
transfer.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
transfer.h
uint-bset.c
uint-bset.h
uint-hash.c tidy-up: rename Curl_safefree()/tool_safefree() to curlx_safefree() 2026-04-01 19:53:53 +02:00
uint-hash.h
uint-spbset.c
uint-spbset.h
uint-table.c
uint-table.h
url.c lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
url.h cf-dns: connection filter for DNS queries 2026-03-30 13:28:38 +02:00
urlapi-int.h
urlapi.c lib: reserve 'result' for CURLcode, even more 2026-04-07 07:48:58 +02:00
urldata.h lib: make resolving HTTPS DNS records reliable: 2026-04-01 15:36:31 +02:00
version.c
ws.c
ws.h