multi: fix add_handle resizing

Due to someone being stupid, the resizing of the multi's transfer
table was actually shrinking it. Oh my.

Add test751 to reproduce, add code assertion.

Fixes #17473
Reported-by: Jeroen Ooms
Closes #17475
This commit is contained in:
Stefan Eissing 2025-05-28 14:04:31 +02:00 committed by Daniel Stenberg
parent 698491f444
commit d16ccbd55d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 132 additions and 2 deletions

33
tests/data/test751 Normal file
View file

@ -0,0 +1,33 @@
<testcase>
<info>
<keywords>
MULTI
</keywords>
</info>
<reply>
<data>
</data>
</reply>
# Client-side
<client>
<server>
none
</server>
# tool is what to use instead of 'curl'
<tool>
lib%TESTNUMBER
</tool>
<name>
multi - add many easy handles
</name>
<command>
</command>
</file>
</client>
# Verify data after the test has been "shot"
<verify>
</verify>
</testcase>