httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r630787 - in /httpd/httpd/trunk/modules/ssl: ssl_scache_dbm.c ssl_scache_dc.c
Date Mon, 25 Feb 2008 10:06:30 GMT
Author: jorton
Date: Mon Feb 25 02:06:28 2008
New Revision: 630787

URL: http://svn.apache.org/viewvc?rev=630787&view=rev
Log:
* modules/ssl/ssl_scache_dbm.c (ssl_scache_dbm_retrieve): Set *destlen 
  on success.

* modules/ssl/ssl_scache_dc.c (ssl_scache_dc_retrieve): Likewise.

Found by: rpluem

Modified:
    httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c
    httpd/httpd/trunk/modules/ssl/ssl_scache_dc.c

Modified: httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c?rev=630787&r1=630786&r2=630787&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_scache_dbm.c Mon Feb 25 02:06:28 2008
@@ -243,6 +243,7 @@
         return FALSE;
     }    
 
+    *destlen = nData;
     memcpy(&expiry, dbmval.dptr, sizeof(time_t));
     memcpy(dest, (char *)dbmval.dptr + sizeof(time_t), nData);
 

Modified: httpd/httpd/trunk/modules/ssl/ssl_scache_dc.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ssl/ssl_scache_dc.c?rev=630787&r1=630786&r2=630787&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_scache_dc.c (original)
+++ httpd/httpd/trunk/modules/ssl/ssl_scache_dc.c Mon Feb 25 02:06:28 2008
@@ -141,6 +141,7 @@
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, s, "distributed scache 'get_session' OVERFLOW");
         return FALSE;
     }
+    *destlen = data_len;
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, s, "distributed scache 'get_session' HIT");
     return TRUE;
 }



Mime
View raw message