diff options
author | Daniel Stenberg <daniel@haxx.se> | 2000-11-21 19:06:55 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2000-11-21 19:06:55 +0000 |
commit | c93816652081a39f2e8eabce9bdb0d32aa82a455 (patch) | |
tree | 24570af63a070c5609aa3ceaeb5cb3fa384b4c38 /lib | |
parent | 50d564b4d4bcf9ec3028d5ef324d0acb920d5cb6 (diff) |
set rangestringalloc to 0 after the string has been freed to prevent it
from being freed twice (a NULL free the second time)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -191,6 +191,7 @@ void static urlfree(struct UrlData *data, bool totally) if(data->bits.rangestringalloc) { free(data->range); data->range=NULL; + data->bits.rangestringalloc=0; /* free now */ } if(data->ptr_proxyuserpwd) { @@ -693,7 +694,7 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect) char *tmp; char *buf; CURLcode result; - char resumerange[12]=""; + char resumerange[40]=""; struct UrlData *data = curl; struct connectdata *conn; #ifdef HAVE_SIGACTION |