]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_scache_dbm.c (ssl_scache_dbm_retrieve): Set *destlen
authorJoe Orton <jorton@apache.org>
Mon, 25 Feb 2008 10:06:28 +0000 (10:06 +0000)
committerJoe Orton <jorton@apache.org>
Mon, 25 Feb 2008 10:06:28 +0000 (10:06 +0000)
  on success.

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

Found by: rpluem

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

modules/ssl/ssl_scache_dbm.c
modules/ssl/ssl_scache_dc.c

index 796a1176781397df1787848ebcde59451657e528..5723d84752b9ff427439aaf665b5dbb8f2914269 100644 (file)
@@ -243,6 +243,7 @@ static BOOL ssl_scache_dbm_retrieve(void *context, server_rec *s, const UCHAR *i
         return FALSE;
     }    
 
+    *destlen = nData;
     memcpy(&expiry, dbmval.dptr, sizeof(time_t));
     memcpy(dest, (char *)dbmval.dptr + sizeof(time_t), nData);
 
index 4e896d9a38db3e8378957532897e94f5030180a4..3330096787166058596645d017b3ae7b83ce85c5 100644 (file)
@@ -141,6 +141,7 @@ static BOOL ssl_scache_dc_retrieve(void *context,
         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;
 }