From: Daniel Stenberg Date: Sun, 5 Apr 2026 16:23:35 +0000 (+0200) Subject: protocol: disable connection reuse for SMB(S) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74a169575d6412dc0ff532acdf94de35a6c2a571;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/protocol.c b/lib/protocol.c index ccd4f3f69d..2a9f08388f 100644 --- a/lib/protocol.c +++ b/lib/protocol.c @@ -316,7 +316,7 @@ const struct Curl_scheme Curl_scheme_smb = { #endif CURLPROTO_SMB, /* protocol */ CURLPROTO_SMB, /* family */ - PROTOPT_CONN_REUSE, /* flags */ + PROTOPT_NONE, /* flags */ PORT_SMB, /* defport */ }; @@ -330,7 +330,7 @@ const struct Curl_scheme Curl_scheme_smbs = { #endif CURLPROTO_SMBS, /* protocol */ CURLPROTO_SMB, /* family */ - PROTOPT_SSL | PROTOPT_CONN_REUSE, /* flags */ + PROTOPT_SSL, /* flags */ PORT_SMBS, /* defport */ };