diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/http.c | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c index babe3f111..89509491f 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1420,6 +1420,8 @@ CURLcode Curl_http_connect(struct connectdata *conn, bool *done)        free(data->state.first_host);      data->state.first_host = strdup(conn->host.name); +    if(!data->state.first_host) +      return CURLE_OUT_OF_MEMORY;    }    if(conn->protocol & PROT_HTTPS) {  | 
