diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2008-07-10 18:15:22 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2008-07-10 18:15:22 +0000 |
commit | 6f3ef94836155e8ddf261b8f0dbffe3cf05757ff (patch) | |
tree | 1ca4a126f62772a78477d84a3ecb1d865326d0f2 /lib | |
parent | 08ac9866e06ec06fd6e02d68461c7d5ab42a1fa0 (diff) |
Fixed another OOM problem, this time with test 64.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/transfer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 11202af80..91e3f5908 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -2386,8 +2386,11 @@ CURLcode Curl_perform(struct SessionHandle *data) if(res == CURLE_OK) { bool retry = Curl_retry_request(conn, &newurl); - if(retry) + if(retry) { follow = FOLLOW_RETRY; + if (!newurl) + res = CURLE_OUT_OF_MEMORY; + } else { /* * We must duplicate the new URL here as the connection data may |