diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-02-22 12:10:30 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-02-22 12:10:30 +0000 |
commit | 527f70e540b68bcdb338cd5a133bbf17daf0105a (patch) | |
tree | 1baed9cd34c4b5ff16f5c4e850a27325c5d2dbda /lib/http_negotiate.c | |
parent | 19f66c757573b4940295a83e08eeb86c878b1def (diff) | |
download | curl-527f70e540b68bcdb338cd5a133bbf17daf0105a.tar.gz |
Curl_base64_decode() now returns an allocated buffer
Diffstat (limited to 'lib/http_negotiate.c')
-rw-r--r-- | lib/http_negotiate.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c index 43f1da44b..68f769913 100644 --- a/lib/http_negotiate.c +++ b/lib/http_negotiate.c @@ -166,12 +166,7 @@ int Curl_input_negotiate(struct connectdata *conn, char *header) len = strlen(header); if (len > 0) { - int rawlen; - input_token.length = (len+3)/4 * 3; - input_token.value = malloc(input_token.length); - if (input_token.value == NULL) - return ENOMEM; - rawlen = Curl_base64_decode(header, input_token.value); + int rawlen = Curl_base64_decode(header, &input_token.value); if (rawlen < 0) return -1; input_token.length = rawlen; |