mirror of
https://github.com/curl/curl.git
synced 2026-08-02 19:40:34 +03:00
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:
parent
3ccaddc9fc
commit
ec977b050d
5 changed files with 60 additions and 21 deletions
|
|
@ -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
36
tests/data/test496
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue