]> granicus.if.org Git - apache/commitdiff
Be defensive to ensure no segfault should the session entries table
authorGraham Leggett <minfrin@apache.org>
Thu, 17 Apr 2008 14:01:21 +0000 (14:01 +0000)
committerGraham Leggett <minfrin@apache.org>
Thu, 17 Apr 2008 14:01:21 +0000 (14:01 +0000)
not be initialised.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649111 13f79535-47bb-0310-9956-ffa450edef68

modules/session/mod_session.c

index 7b4988090970c306207dbb60c5a25bf1d93f2620..83c33308ed77c53f87a157f3e656e224bc37d3eb 100644 (file)
@@ -95,7 +95,7 @@ AP_DECLARE(void) ap_session_get(request_rec * r, session_rec * z, const char *ke
     if (!z) {
         ap_session_load(r, &z);
     }
-    if (z) {
+    if (z && z->entries) {
         *value = apr_table_get(z->entries, key);
     }
 }