]> git.ipfire.org Git - thirdparty/curl.git/commit
ftp/sftp: strdup data info memory
authorStefan Eissing <stefan@eissing.org>
Sat, 15 Mar 2025 10:20:15 +0000 (11:20 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 15 Mar 2025 20:49:38 +0000 (21:49 +0100)
commitebce3f0c02a78c1b440516654ad2d3a91dffa2fc
treef19d68563562872a2ad90a9823dbbad44288a377
parentd12129dda5e14f384dbb9f24ddb462479501fc87
ftp/sftp: strdup data info memory

Fix the broken implementation to have `data->state` carry pointers into
connectdata members. Always dup the memory and free when easy handle
closes.

Closes #16733
lib/ftp.c
lib/url.c
lib/vssh/libssh.c
lib/vssh/libssh2.c