{"author":"Ammar Faizi","author_email":"ammarfaizi2@gnuweeb.org","author_time":1752672163,"commit_time":1752791895,"committer":"Daniel Stenberg","committer_email":"daniel@haxx.se","hash":"5cefe93eb644f757c5a685263a42961048b7d586","message":"socks: do_SOCKS5: Fix invalid buffer content on short send\n\nAhmad Gani intercepts the sendto syscall to simulate short send, but\ncurl incorrectly handles it. It keeps resending the version:\n\n  sendto(4, \"\\x05\", 1, MSG_NOSIGNAL, NULL, 0) = 1\n  sendto(4, \"\\x05\", 1, MSG_NOSIGNAL, NULL, 0) = 1\n\nDon't restart the buffer in the `CONNECT_SOCKS_INIT` case if\n`sx->outstanding` is not zero. It should continue sending the\nadvanced buffer.\n\nFixes #17942\nReported-by: Ahmad Gani <reyuki@gnuweeb.org>\nSigned-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>\nCloses #17943\n","parents":["bfa317c8cd058903b7c6eaf8e6a1f3e6553710a0"],"tree_hash":"a2ed3ca70cbea985a42effa4a766b8ac38f8b38c"}