tool_operate: more transfer cleanup after parallel transfer fail

In some circumstances when doing parallel transfers, the
single_transfer_cleanup() would not be called and then 'inglob' could
leak.

Test 496 verifies

Reported-by: Trail of Bits
Closes #9749
This commit is contained in:
Daniel Stenberg 2022-10-17 11:44:13 +02:00
parent 3ccaddc9fc
commit ec977b050d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 60 additions and 21 deletions

View file

@ -73,7 +73,7 @@ test430 test431 test432 test433 test434 test435 test436 \
\
test440 test441 test442 test443 test444 \
\
test490 test491 test492 test493 test494 test495 \
test490 test491 test492 test493 test494 test495 test496 \
\
test500 test501 test502 test503 test504 test505 test506 test507 test508 \
test509 test510 test511 test512 test513 test514 test515 test516 test517 \

36
tests/data/test496 Normal file
View file

@ -0,0 +1,36 @@
<testcase>
<info>
<keywords>
curl tool
cmdline
parallel
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
<server>
none
</server>
<name>
parallel upload missing file
</name>
<command>
0 -Z -Tz
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<errorcode>
26
</errorcode>
</verify>
</testcase>