diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-10-16 20:43:02 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-10-16 20:43:02 +0000 |
commit | 54582bdce9c551d50759c9ed6a092644485806ad (patch) | |
tree | ac360e936f5d854e92230ad0281e75ffe5eb9f1d /lib | |
parent | a9a4300a367a4beeef0674240e6721d68f1b1ae3 (diff) |
don't segfault when NULL is passed in to CURLOPT_USERPWD or
CURLOPT_PROXYUSERPWD
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |