apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r731413 - /apr/apr-util/trunk/crypto/apr_sha1.c
Date Mon, 05 Jan 2009 02:16:18 GMT
Author: bojan
Date: Sun Jan  4 18:16:17 2009
New Revision: 731413

URL: http://svn.apache.org/viewvc?rev=731413&view=rev
Log:
Fix a buffer overrun and password matching for SHA passwords.
PR 45679.
Patch by Ben Noordhuis <bnoordhuis gmail.com>.

Modified:
    apr/apr-util/trunk/crypto/apr_sha1.c

Modified: apr/apr-util/trunk/crypto/apr_sha1.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/crypto/apr_sha1.c?rev=731413&r1=731412&r2=731413&view=diff
==============================================================================
--- apr/apr-util/trunk/crypto/apr_sha1.c (original)
+++ apr/apr-util/trunk/crypto/apr_sha1.c Sun Jan  4 18:16:17 2009
@@ -351,10 +351,6 @@
     apr_sha1_ctx_t context;
     apr_byte_t digest[APR_SHA1_DIGESTSIZE];
 
-    if (strncmp(clear, APR_SHA1PW_ID, APR_SHA1PW_IDLEN) == 0) {
-	clear += APR_SHA1PW_IDLEN;
-    }
-
     apr_sha1_init(&context);
     apr_sha1_update(&context, clear, len);
     apr_sha1_final(digest, &context);



Mime
View raw message