multi.c: Avoid invalid memory read after free() from commit 3c8c873252
authorSteve Holme <steve_holme@hotmail.com>
Sun, 7 Sep 2014 06:09:14 +0000 (07:09 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 7 Sep 2014 06:11:14 +0000 (07:11 +0100)
commit4a6fa4c2047d315536d0d10c776398aed13f2165
tree71b03f7fc668b93fd809bcf66bb63d9eaca6ebeb
parentc25cd9094b8be1920c1de68d9384ab9dab185dfb
multi.c: Avoid invalid memory read after free() from commit 3c8c873252

As the current element in the list is free()d by Curl_llist_remove(),
when the associated connection is pending, reworked the loop to avoid
accessing the next element through e->next afterward.
lib/multi.c