Removed some obsolete digest code that caused a valgrind error in test 551.

This commit is contained in:
Dan Fandrich
2009-05-22 17:26:49 +00:00
parent 5ca0c73e98
commit 8519682564
2 changed files with 3 additions and 8 deletions

View File

@@ -6,6 +6,9 @@
Changelog Changelog
Daniel Fandrich (22 May 2009)
- Removed some obsolete digest code that caused a valgrind error in test 551.
Daniel Fandrich (20 May 2009) Daniel Fandrich (20 May 2009)
- Added "non-existing host" test keywords to make it easy to skip those - Added "non-existing host" test keywords to make it easy to skip those
tests on machines that have broken DNS configurations (such as tests on machines that have broken DNS configurations (such as

View File

@@ -163,14 +163,12 @@ CURLdigest Curl_input_digest(struct connectdata *conn,
while(more) { while(more) {
char value[MAX_VALUE_LENGTH]; char value[MAX_VALUE_LENGTH];
char content[MAX_CONTENT_LENGTH]; char content[MAX_CONTENT_LENGTH];
size_t totlen=0;
while(*header && ISSPACE(*header)) while(*header && ISSPACE(*header))
header++; header++;
/* extract a value=content pair */ /* extract a value=content pair */
if(!get_pair(header, value, content, &header)) { if(!get_pair(header, value, content, &header)) {
if(Curl_raw_equal(value, "nonce")) { if(Curl_raw_equal(value, "nonce")) {
d->nonce = strdup(content); d->nonce = strdup(content);
if(!d->nonce) if(!d->nonce)
@@ -236,12 +234,6 @@ CURLdigest Curl_input_digest(struct connectdata *conn,
else { else {
/* unknown specifier, ignore it! */ /* unknown specifier, ignore it! */
} }
totlen = strlen(value)+strlen(content)+1;
if(header[strlen(value)+1] == '\"')
/* the contents were within quotes, then add 2 for them to the
length */
totlen += 2;
} }
else else
break; /* we're done here */ break; /* we're done here */