1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

calling curl_easy_perform() with no URL set, now returns an error as

early as possible
This commit is contained in:
Daniel Stenberg 2001-04-11 14:14:28 +00:00
parent 18f044f19d
commit 879c6c5711

View File

@ -749,6 +749,10 @@ CURLcode Curl_perform(CURL *curl)
bool port=TRUE; /* allow data->use_port to set port to use */ bool port=TRUE; /* allow data->use_port to set port to use */
char *newurl = NULL; /* possibly a new URL to follow to! */ char *newurl = NULL; /* possibly a new URL to follow to! */
if(!data->url)
/* we can't do anything wihout URL */
return CURLE_URL_MALFORMAT;
data->followlocation=0; /* reset the location-follow counter */ data->followlocation=0; /* reset the location-follow counter */
data->bits.this_is_a_follow = FALSE; /* reset this */ data->bits.this_is_a_follow = FALSE; /* reset this */