httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9413] New: - apr_pool_userdata_set() should be used in mod_auth_digest.c, mod_suexec.c, ssl_scache.c.
Date Sat, 25 May 2002 08:17:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9413>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9413

apr_pool_userdata_set() should be used in mod_auth_digest.c, mod_suexec.c, ssl_scache.c.

           Summary: apr_pool_userdata_set() should be used in
                    mod_auth_digest.c, mod_suexec.c, ssl_scache.c.
           Product: Apache httpd-2.0
           Version: 2.0.36
          Platform: PC
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: nazonazo@super.win.ne.jp


To use apr_pool_userdata_setn() in post_config functions of DSO modules
is not good. I experienced SEGV at httpd startup.

--- httpd-2.0.36/modules/aaa/mod_auth_digest.c.org      Sun Apr 28 18:02:19 2002
+++ httpd-2.0.36/modules/aaa/mod_auth_digest.c  Fri May 24 21:39:42 2002
@@ -384,7 +384,7 @@
      * set up our static data on the second call. */
     apr_pool_userdata_get(&data, userdata_key, s->process->pool);
     if (!data) {
-        apr_pool_userdata_setn((const void *)1, userdata_key,
+        apr_pool_userdata_set((const void *)1, userdata_key,
                                apr_pool_cleanup_null, s->process->pool);
         return OK;
     }
--- httpd-2.0.36/modules/generators/mod_suexec.c.org    Thu Apr 25 16:18:39 2002
+++ httpd-2.0.36/modules/generators/mod_suexec.c        Sat May 25 13:56:59 2002
@@ -141,7 +141,7 @@
         ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, s,
                      "suEXEC mechanism enabled (wrapper: %s)", SUEXEC_BIN);
 
-        apr_pool_userdata_setn((void *)1, SUEXEC_POST_CONFIG_USERDATA,
+        apr_pool_userdata_set((void *)1, SUEXEC_POST_CONFIG_USERDATA,
                                apr_pool_cleanup_null, s->process->pool);
     }
 
--- httpd-2.0.36/modules/ssl/ssl_scache.c.org   Thu Mar 28 08:25:58 2002
+++ httpd-2.0.36/modules/ssl/ssl_scache.c       Fri May 24 22:15:04 2002
@@ -94,7 +94,7 @@
 
         apr_pool_userdata_get(&data, userdata_key, s->process->pool);
         if (!data) {
-            apr_pool_userdata_setn((const void *)1, userdata_key,
+            apr_pool_userdata_set((const void *)1, userdata_key,
                                    apr_pool_cleanup_null, s->process->pool);
             return;
         }

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message