curl-curl/tests/data/test2101
Daniel Stenberg b1faac8039
multi: kill off remaining internal handles in curl_multi_cleanup
- if there are pending internal handles left in the list, they are
  leftovers (from for example Doh) and must be freed.

- unlink_all_msgsent_handles() did not properly move all msgsent
  handles over to the process list as intended

Fixes a DoH memory leak found by oss-fuzz.

Add test 2101 that can reproduce and verify.

Closes #16674
2025-03-12 09:22:32 +01:00

51 lines
620 B
Plaintext

<testcase>
<info>
<keywords>
HTTP
HTTP GET
DOH
</keywords>
</info>
#
# Server-side
<reply>
<servercmd>
idle
</servercmd>
</reply>
#
# Client-side
<client>
<server>
http
</server>
# requires debug so that it can use the DoH server without https
<features>
Debug
DoH
</features>
<name>
DoH without response
</name>
<command>
http://neverreached.example.com/ --doh-url http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -m 1
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
# curl: (28) Resolving timed out
# curl: (6) Could not resolve hostname
<errorcode>
28,6
</errorcode>
</verify>
</testcase>