Removed some obsolete digest code that caused a valgrind error in test 551.
authorDan Fandrich <dan@coneharvesters.com>
Fri, 22 May 2009 17:26:49 +0000 (17:26 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 22 May 2009 17:26:49 +0000 (17:26 +0000)
CHANGES
lib/http_digest.c

diff --git a/CHANGES b/CHANGES
index ccc7e36..4eafc09 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,9 @@
 
                                   Changelog
 
+Daniel Fandrich (22 May 2009)
+- Removed some obsolete digest code that caused a valgrind error in test 551.
+
 Daniel Fandrich (20 May 2009)
 - Added "non-existing host" test keywords to make it easy to skip those
   tests on machines that have broken DNS configurations (such as
index 7011b19..74c6e92 100644 (file)
@@ -163,14 +163,12 @@ CURLdigest Curl_input_digest(struct connectdata *conn,
     while(more) {
       char value[MAX_VALUE_LENGTH];
       char content[MAX_CONTENT_LENGTH];
-      size_t totlen=0;
 
       while(*header && ISSPACE(*header))
         header++;
 
       /* extract a value=content pair */
       if(!get_pair(header, value, content, &header)) {
-
         if(Curl_raw_equal(value, "nonce")) {
           d->nonce = strdup(content);
           if(!d->nonce)
@@ -236,12 +234,6 @@ CURLdigest Curl_input_digest(struct connectdata *conn,
         else {
           /* 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
         break; /* we're done here */