From: Brian Pane Date: Sun, 16 Dec 2001 09:54:14 +0000 (+0000) Subject: Replaced an instance of apr_pool_userdata_setn() with apr_pool_userdata_set().. X-Git-Tag: 2.0.30~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d445c8f580775a530e5bd0e0cc98519e289e395;p=apache Replaced an instance of apr_pool_userdata_setn() with apr_pool_userdata_set().. the value of "userdata_key" is an address on the stack when compiled with gcc 2.95.3 on Solaris/Sparc, so storing the address directly in the hash table is unsafe. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92497 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/loggers/mod_log_config.c b/modules/loggers/mod_log_config.c index 2213b6c852..ddcb8a7ee1 100644 --- a/modules/loggers/mod_log_config.c +++ b/modules/loggers/mod_log_config.c @@ -1024,8 +1024,8 @@ static config_log_state *open_config_log(server_rec *s, apr_pool_t *p, */ apr_pool_userdata_get(&data, userdata_key, s->process->pool); if (!data) { - apr_pool_userdata_setn((const void *)1, userdata_key, - NULL, s->process->pool); + apr_pool_userdata_set((const void *)1, userdata_key, + NULL, s->process->pool); /* If logging for the first time after a restart, keep going. */ if (!ap_my_generation) { return cls;