Commit 61312fe6 authored by Marc Hoersken's avatar Marc Hoersken
Browse files

multi.c: fix possible dereference of null pointer

parent 149e0c8d
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -2162,11 +2162,13 @@ static CURLMcode multi_socket(struct Curl_multi *multi,

    /* walk through each easy handle and do the socket state change magic
       and callbacks */
    if(result != CURLM_BAD_HANDLE) {
      data=multi->easyp;
      while(data) {
        singlesocket(multi, data);
        data = data->next;
      }
    }

    /* or should we fall-through and do the timer-based stuff? */
    return result;