Skip to content
Snippets Groups Projects
Commit 6d359842 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

prevent strdup()ing NULL -- Paul Harrington's report

parent c046dc90
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,7 @@ Curl_cookie_add(struct CookieInfo *c,
if(NULL == co->domain)
/* no domain given in the header line, set the default now */
co->domain=strdup(domain);
co->domain=domain?strdup(domain):NULL;
}
else {
/* This line is NOT a HTTP header style line, we do offer support for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment