curl-curl/tests/data/test748
Daniel Stenberg 13032ff75c
curl: fix memory leak when -h is used in config file
Reported-by: antypanty on hackerone

Add test 748 to reproduce and verify fix

Closes #17306
2025-05-10 11:16:07 +02:00

37 lines
344 B
Plaintext

<testcase>
<info>
<keywords>
--config
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
none
</server>
<name>
A --config file that uses -h and no URL
</name>
<file name="%LOGDIR/cmd">
-h all
</file>
<command>
-K %LOGDIR/cmd
</command>
</client>
<verify>
<errorcode>
2
</errorcode>
</verify>
</testcase>