]> granicus.if.org Git - curl/commit
singlesocket: use separate variable for inner loop
authorDaniel Stenberg <daniel@haxx.se>
Fri, 31 May 2019 21:00:06 +0000 (23:00 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 1 Jun 2019 08:41:15 +0000 (10:41 +0200)
commitc36f42839d88b0e4c938e80ebd5da4c765b0264e
tree6927df23be01456171daaeffc5eba25695a495b2
parentd3d04a872c0d907547e96f2b4c89367d9f43e021
singlesocket: use separate variable for inner loop

An inner loop within the singlesocket() function wrongly re-used the
variable for the outer loop which then could cause an infinite
loop. Change to using a separate variable!

Reported-by: Eric Wu
Fixes #3970
Closes #3973
lib/multi.c