Commit 012d7e28 authored by Yang Tse's avatar Yang Tse
Browse files

Fix Curl_open() not reporting failure when allocation of the

buffer used to store headers in the SessionHandle failed.
parent cd3029f3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -564,9 +564,10 @@ CURLcode Curl_open(struct SessionHandle **curl)
    free(data);
    data = NULL;
  }

  else
    *curl = data;
  return CURLE_OK;

  return res;
}

CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,