You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ni...@apache.org on 2015/06/18 01:09:36 UTC

svn commit: r1686122 - /httpd/httpd/trunk/modules/session/mod_session_dbd.c

Author: niq
Date: Wed Jun 17 23:09:36 2015
New Revision: 1686122

URL: http://svn.apache.org/r1686122
Log:
mod_session_dbd: Request Notes should have request lifetime.
Patch by Jacob Champion at ni.com

Modified:
    httpd/httpd/trunk/modules/session/mod_session_dbd.c

Modified: httpd/httpd/trunk/modules/session/mod_session_dbd.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/mod_session_dbd.c?rev=1686122&r1=1686121&r2=1686122&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/session/mod_session_dbd.c (original)
+++ httpd/httpd/trunk/modules/session/mod_session_dbd.c Wed Jun 17 23:09:36 2015
@@ -191,7 +191,7 @@ static apr_status_t session_dbd_load(req
     }
 
     /* first look in the notes */
-    note = apr_pstrcat(r->pool, MOD_SESSION_DBD, name, NULL);
+    note = apr_pstrcat(m->pool, MOD_SESSION_DBD, name, NULL);
     zz = (session_rec *)apr_table_get(m->notes, note);
     if (zz) {
         *z = zz;
@@ -228,8 +228,8 @@ static apr_status_t session_dbd_load(req
     }
 
     /* create a new session and return it */
-    zz = (session_rec *) apr_pcalloc(r->pool, sizeof(session_rec));
-    zz->pool = r->pool;
+    zz = (session_rec *) apr_pcalloc(m->pool, sizeof(session_rec));
+    zz->pool = m->pool;
     zz->entries = apr_table_make(zz->pool, 10);
     if (key && val) {
         apr_uuid_t *uuid = apr_pcalloc(zz->pool, sizeof(apr_uuid_t));