httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r649111 - /httpd/httpd/trunk/modules/session/mod_session.c
Date Thu, 17 Apr 2008 14:01:23 GMT
Author: minfrin
Date: Thu Apr 17 07:01:21 2008
New Revision: 649111

URL: http://svn.apache.org/viewvc?rev=649111&view=rev
Log:
Be defensive to ensure no segfault should the session entries table
not be initialised.

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

Modified: httpd/httpd/trunk/modules/session/mod_session.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/mod_session.c?rev=649111&r1=649110&r2=649111&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/session/mod_session.c (original)
+++ httpd/httpd/trunk/modules/session/mod_session.c Thu Apr 17 07:01:21 2008
@@ -95,7 +95,7 @@
     if (!z) {
         ap_session_load(r, &z);
     }
-    if (z) {
+    if (z && z->entries) {
         *value = apr_table_get(z->entries, key);
     }
 }



Mime
View raw message