diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-04-11 14:14:28 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-04-11 14:14:28 +0000 |
commit | 879c6c5711b3ac2344f5a44cbb1cbd36420b3a5a (patch) | |
tree | 12ce1abf808a5cdb1868c12bf3bb5eff62e9fa2a /lib | |
parent | 18f044f19d26f2b6dcd41796966f488a62a1bdca (diff) |
calling curl_easy_perform() with no URL set, now returns an error as
early as possible
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index bc468f320..cde665c85 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -749,6 +749,10 @@ CURLcode Curl_perform(CURL *curl) bool port=TRUE; /* allow data->use_port to set port to use */ 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->bits.this_is_a_follow = FALSE; /* reset this */ |