summaryrefslogtreecommitdiffstats
path: root/modules/ssl
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2008-02-25 11:06:28 +0100
committerJoe Orton <jorton@apache.org>2008-02-25 11:06:28 +0100
commit0400522f55f1d53a75728cd4b4464b696246d2f5 (patch)
tree30a4b90c97ae9f2890f955160b4ab964f399ac54 /modules/ssl
parent* modules/ssl/ssl_scache_shmcb.c (shmcb_subcache_retrieve, (diff)
downloadapache2-0400522f55f1d53a75728cd4b4464b696246d2f5.tar.xz
apache2-0400522f55f1d53a75728cd4b4464b696246d2f5.zip
* 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 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@630787 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ssl')
-rw-r--r--modules/ssl/ssl_scache_dbm.c1
-rw-r--r--modules/ssl/ssl_scache_dc.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/ssl/ssl_scache_dbm.c b/modules/ssl/ssl_scache_dbm.c
index 796a117678..5723d84752 100644
--- a/modules/ssl/ssl_scache_dbm.c
+++ b/modules/ssl/ssl_scache_dbm.c
@@ -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);
diff --git a/modules/ssl/ssl_scache_dc.c b/modules/ssl/ssl_scache_dc.c
index 4e896d9a38..3330096787 100644
--- a/modules/ssl/ssl_scache_dc.c
+++ b/modules/ssl/ssl_scache_dc.c
@@ -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;
}