The following reply was made to PR mod_digest/4957; it has been noted by GNATS.

From: "Life is hard, and then you die." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc:  Subject: Re: mod_digest/4957: mod_auth_digest failed with incorrect nonce 
value
Date: Sat, 11 Sep 1999 19:44:06 +0200 (MET DST)

   Hi Peter,
 
 > You're correct, you re-insert the tmp, I mis-read the code.  However,
 > the tmp is getting clobbered.
 
 I think we found the problem. Can you apply the following patch to
 src/ap/ap_base64.c and let me know how things turn out?
 
 
   Cheers,
 
   Ronald
 
 
 -----------------------------------------------------------------------
 Index: ap_base64.c
 ===================================================================
 RCS file: /home/cvs/apache-1.3/src/ap/ap_base64.c,v
 retrieving revision 1.4
 diff -u -r1.4 ap_base64.c
 --- ap_base64.c        1999/08/14 08:35:45     1.4
 +++ ap_base64.c        1999/09/10 06:23:04
 @@ -139,6 +139,7 @@
      for (i = 0; i < len; i++)
        bufplain[i] = os_toebcdic[bufplain[i]];
  #endif                                /* CHARSET_EBCDIC */
 +    bufplain[len] = '\0';
      return len;
  }
  
 @@ -186,7 +187,6 @@
            (unsigned char) (pr2six[bufin[2]] << 6 | pr2six[bufin[3]]);
      }
  
 -    *(bufout++) = '\0';
      nbytesdecoded -= (4 - nprbytes) & 3;
      return nbytesdecoded;
  }
 -----------------------------------------------------------------------
 

Reply via email to