httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r655205 - /httpd/httpd/trunk/modules/aaa/mod_auth_form.c
Date Sat, 10 May 2008 22:57:37 GMT
Author: minfrin
Date: Sat May 10 15:57:36 2008
New Revision: 655205

URL: http://svn.apache.org/viewvc?rev=655205&view=rev
Log:
Make sure the optional function calls are used for ap_session_set and
ap_session_get. [Brad Nicholes]

Modified:
    httpd/httpd/trunk/modules/aaa/mod_auth_form.c

Modified: httpd/httpd/trunk/modules/aaa/mod_auth_form.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_auth_form.c?rev=655205&r1=655204&r2=655205&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_auth_form.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_auth_form.c Sat May 10 15:57:36 2008
@@ -514,9 +514,9 @@
     }
 
     ap_session_load_fn(r, &z);
-    ap_session_set(r, z, apr_pstrcat(r->pool, authname, "-" MOD_SESSION_USER, NULL), user);
-    ap_session_set(r, z, apr_pstrcat(r->pool, authname, "-" MOD_SESSION_PW, NULL), pw);
-    ap_session_set(r, z, apr_pstrcat(r->pool, authname, "-" MOD_AUTH_FORM_HASH, NULL),
hash);
+    ap_session_set_fn(r, z, apr_pstrcat(r->pool, authname, "-" MOD_SESSION_USER, NULL),
user);
+    ap_session_set_fn(r, z, apr_pstrcat(r->pool, authname, "-" MOD_SESSION_PW, NULL),
pw);
+    ap_session_set_fn(r, z, apr_pstrcat(r->pool, authname, "-" MOD_AUTH_FORM_HASH, NULL),
hash);
 
     return APR_SUCCESS;
 
@@ -534,13 +534,13 @@
     ap_session_load_fn(r, &z);
 
     if (user) {
-        ap_session_get(r, z, apr_pstrcat(r->pool, authname, "-" MOD_SESSION_USER, NULL),
user);
+        ap_session_get_fn(r, z, apr_pstrcat(r->pool, authname, "-" MOD_SESSION_USER, NULL),
user);
     }
     if (pw) {
-        ap_session_get(r, z, apr_pstrcat(r->pool, authname, "-" MOD_SESSION_PW, NULL),
pw);
+        ap_session_get_fn(r, z, apr_pstrcat(r->pool, authname, "-" MOD_SESSION_PW, NULL),
pw);
     }
     if (hash) {
-        ap_session_get(r, z, apr_pstrcat(r->pool, authname, "-" MOD_AUTH_FORM_HASH, NULL),
hash);
+        ap_session_get_fn(r, z, apr_pstrcat(r->pool, authname, "-" MOD_AUTH_FORM_HASH,
NULL), hash);
     }
 
     /* set the user, even though the user is unauthenticated at this point */



Mime
View raw message