diff options
author | Nick Kew <niq@apache.org> | 2015-06-17 23:09:36 +0000 |
---|---|---|
committer | Nick Kew <niq@apache.org> | 2015-06-17 23:09:36 +0000 |
commit | ed50579d80ccbeba301279a2ea37e40fc3031065 (patch) | |
tree | 67c4e74a4350f67a3e2b3608245dc0bdf30c4809 /modules/session/mod_session_dbd.c | |
parent | 22dc0a047235e25c4d1dd33eaf13ced00bd55b1e (diff) | |
download | httpd-ed50579d80ccbeba301279a2ea37e40fc3031065.tar.gz |
mod_session_dbd: Request Notes should have request lifetime.
Patch by Jacob Champion at ni.com
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1686122 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/session/mod_session_dbd.c')
-rw-r--r-- | modules/session/mod_session_dbd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/session/mod_session_dbd.c b/modules/session/mod_session_dbd.c index cf65e5af3c..af2dc2d09e 100644 --- a/modules/session/mod_session_dbd.c +++ b/modules/session/mod_session_dbd.c @@ -191,7 +191,7 @@ static apr_status_t session_dbd_load(request_rec * r, session_rec ** z) } /* 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(request_rec * r, session_rec ** z) } /* 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)); |