multi.c: fix possible dereference of null pointer

This commit is contained in:
Marc Hoersken
2014-01-05 20:01:33 +01:00
parent 149e0c8d10
commit 61312fe66f

View File

@@ -2162,11 +2162,13 @@ 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 */
if(result != CURLM_BAD_HANDLE) {
data=multi->easyp; data=multi->easyp;
while(data) { while(data) {
singlesocket(multi, data); singlesocket(multi, data);
data = data->next; 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? */
return result; return result;