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

don't segfault when NULL is passed in to CURLOPT_USERPWD or

CURLOPT_PROXYUSERPWD
parent a9a4300a
No related merge requests found
......@@ -286,6 +286,9 @@ static CURLcode setstropt_userpwd(char *option, char **user_storage,
char* separator;
CURLcode result = CURLE_OK;
if(!option)
return result;
separator = strchr(option, ':');
if (separator != NULL) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment