/[Apache-SVN]/httpd/httpd/trunk/modules/aaa/mod_authn_dbd.c
ViewVC logotype

Diff of /httpd/httpd/trunk/modules/aaa/mod_authn_dbd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- httpd/httpd/trunk/modules/aaa/mod_authn_dbd.c	2005/10/17 16:48:05	325925
+++ httpd/httpd/trunk/modules/aaa/mod_authn_dbd.c	2005/10/18 09:01:02	326054
@@ -88,7 +88,6 @@
 {
     apr_status_t rv;
     const char *dbd_password = NULL;
-    char *colon_pw;
     apr_dbd_prepared_t *statement;
     apr_dbd_results_t *res = NULL;
     apr_dbd_row_t *row = NULL;
@@ -136,11 +135,6 @@
         return AUTH_USER_NOT_FOUND;
     }
 
-    colon_pw = ap_strchr(dbd_password, ':');
-    if (colon_pw) {
-        *colon_pw = '\0';
-    }
-
     rv = apr_password_validate(password, dbd_password);
 
     if (rv != APR_SUCCESS) {
@@ -154,7 +148,6 @@
 {
     apr_status_t rv;
     const char *dbd_hash = NULL;
-    char *colon_hash;
     apr_dbd_prepared_t *statement;
     apr_dbd_results_t *res = NULL;
     apr_dbd_row_t *row = NULL;
@@ -200,13 +193,7 @@
         return AUTH_USER_NOT_FOUND;
     }
 
-    colon_hash = ap_strchr(dbd_hash, ':');
-    if (colon_hash) {
-        *colon_hash = '\0';
-    }
-
     *rethash = apr_pstrdup(r->pool, dbd_hash);
-
     return AUTH_USER_FOUND;
 }
 static void authn_dbd_hooks(apr_pool_t *p)

 

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2