summaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-11-15 16:51:32 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-11-15 23:13:09 +0100
commit4d97fe547322c4ad0868e2282476b1a7d2027f86 (patch)
tree017299b640922f78372066f6c85eb888c10e4283 /lib/tftp.c
parent2511a41bf987164a5f82c03ff0e8c1776da546a9 (diff)
downloadcurl-4d97fe547322c4ad0868e2282476b1a7d2027f86.tar.gz
tftp: mark protocol as not possible to do over CONNECT
... and make connect_init() refusing trying to tunnel protocols marked as not working. Avoids a double-free. Reported-by: Even Rouault Fixes #8018 Closes #8020
Diffstat (limited to 'lib/tftp.c')
-rw-r--r--lib/tftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index 7e5246f01..f8c68441c 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -186,7 +186,7 @@ const struct Curl_handler Curl_handler_tftp = {
PORT_TFTP, /* defport */
CURLPROTO_TFTP, /* protocol */
CURLPROTO_TFTP, /* family */
- PROTOPT_NONE | PROTOPT_NOURLQUERY /* flags */
+ PROTOPT_NOTCPPROXY | PROTOPT_NOURLQUERY /* flags */
};
/**********************************************************