]> git.ipfire.org Git - thirdparty/curl.git/commit
socks: advance iobuf instead of reset
authorStefan Eissing <stefan@eissing.org>
Wed, 8 Oct 2025 12:29:54 +0000 (14:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Oct 2025 21:40:12 +0000 (23:40 +0200)
commit7fecc009eacf2bd4815b4dd7b9ec082bca7a1bcc
treeafafb5ade983a6aa27accda80cb829ca68e9e4ab
parentaeacf9a3e8efb6d93d33fe7cf7350e37c985a619
socks: advance iobuf instead of reset

During the SOCKS connect phase, the `iobuf` is used to receive repsonses
from the server. If the server sends more bytes than expected, the code
discarded them silently.

Fix this by advancing the iobuf only with the length consumed.

Reported-by: Joshua Rogers
Closes #18938
lib/socks.c