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

return an error string for the missing URL case

parent 774dab58
No related branches found
No related tags found
No related merge requests found
......@@ -1622,9 +1622,11 @@ Transfer(struct connectdata *conn)
CURLcode Curl_pretransfer(struct SessionHandle *data)
{
CURLcode res;
if(!data->change.url)
if(!data->change.url) {
/* we can't do anything wihout URL */
failf(data, "No URL set!\n");
return CURLE_URL_MALFORMAT;
}
/* Init the SSL session ID cache here. We do it here since we want to do it
after the *_setopt() calls (that could change the size of the cache) but
......
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