]> git.ipfire.org Git - thirdparty/curl.git/commit
socks_sspi: simplify, clean up Curl_SOCKS5_gssapi_negotiate bagder/socks-sspi 18315/head
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Aug 2025 15:10:35 +0000 (17:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 22 Aug 2025 08:47:32 +0000 (10:47 +0200)
commit401e4961ee600bdb8af3443d2dbfbf7d06bb2852
tree02084d7c4486c1c61d5f47a7cadb2e001d5a8ed3
parentcbd5d2507a50298d616429339cb7a7910597e9ba
socks_sspi: simplify, clean up Curl_SOCKS5_gssapi_negotiate

This function returned error on MANY places, each with its own cleanup
sequence and by the look of it almost all of them were incomplete,
making them leak resources on errors.

This take now gotos to the error label where it cleans everything up
before returning error. This also simplifies the function a lot.

Closes #18315
lib/socks_sspi.c