mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
multi.c: fix possible dereference of null pointer
This commit is contained in:
parent
149e0c8d10
commit
61312fe66f
10
lib/multi.c
10
lib/multi.c
@ -2162,10 +2162,12 @@ static CURLMcode multi_socket(struct Curl_multi *multi,
|
|||||||
|
|
||||||
/* walk through each easy handle and do the socket state change magic
|
/* walk through each easy handle and do the socket state change magic
|
||||||
and callbacks */
|
and callbacks */
|
||||||
data=multi->easyp;
|
if(result != CURLM_BAD_HANDLE) {
|
||||||
while(data) {
|
data=multi->easyp;
|
||||||
singlesocket(multi, data);
|
while(data) {
|
||||||
data = data->next;
|
singlesocket(multi, data);
|
||||||
|
data = data->next;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* or should we fall-through and do the timer-based stuff? */
|
/* or should we fall-through and do the timer-based stuff? */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user