Skip to content

Commit 74a1695

Browse files
committed
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 curl#21238
1 parent a0d5d8f commit 74a1695

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/protocol.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ const struct Curl_scheme Curl_scheme_smb = {
316316
#endif
317317
CURLPROTO_SMB, /* protocol */
318318
CURLPROTO_SMB, /* family */
319-
PROTOPT_CONN_REUSE, /* flags */
319+
PROTOPT_NONE, /* flags */
320320
PORT_SMB, /* defport */
321321
};
322322

@@ -330,7 +330,7 @@ const struct Curl_scheme Curl_scheme_smbs = {
330330
#endif
331331
CURLPROTO_SMBS, /* protocol */
332332
CURLPROTO_SMB, /* family */
333-
PROTOPT_SSL | PROTOPT_CONN_REUSE, /* flags */
333+
PROTOPT_SSL, /* flags */
334334
PORT_SMBS, /* defport */
335335
};
336336

0 commit comments

Comments
 (0)