summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorNokis Mavrogiannopoulos <nmav@gnutls.org>2007-12-09 11:35:24 (GMT)
committer Nokis Mavrogiannopoulos <nmav@gnutls.org>2007-12-09 11:35:24 (GMT)
commit47d85e7795db6797f5186f2bf4c18aef130561f2 (patch)
treec3a943c390e89056b53ce3cbcac172c86bbad234
parentae5263c379cc43e451102e4c4e193f48fd91df88 (diff)
-rw-r--r--src/gnutls_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gnutls_cache.c b/src/gnutls_cache.c
index b29086b..83e7bb5 100644
--- a/src/gnutls_cache.c
+++ b/src/gnutls_cache.c
@@ -54,7 +54,7 @@ char *mgs_session_id2sz(unsigned char *id, int idlen,
54 54
55 55
56/* Name the Session ID as: 56/* Name the Session ID as:
57 * IP:port.SessionID 57 * server:port.SessionID
58 * to disallow resuming sessions on different servers 58 * to disallow resuming sessions on different servers
59 */ 59 */
60static int mgs_session_id2dbm(conn_rec* c, unsigned char *id, int idlen, 60static int mgs_session_id2dbm(conn_rec* c, unsigned char *id, int idlen,
@@ -67,7 +67,7 @@ char *sz;
67 if (sz == NULL) 67 if (sz == NULL)
68 return -1; 68 return -1;
69 69
70 dbmkey->dptr = apr_psprintf(c->pool, "%s:%d.%s", c->local_ip, c->base_server->port, sz); 70 dbmkey->dptr = apr_psprintf(c->pool, "%s:%d.%s", c->base_server->server_hostname, c->base_server->port, sz);
71 dbmkey->dsize = strlen( dbmkey->dptr); 71 dbmkey->dsize = strlen( dbmkey->dptr);
72 72
73 return 0; 73 return 0;
@@ -90,7 +90,7 @@ char *mgs_time2sz(time_t in_time, char *str, int strsize)
90 90
91#if HAVE_APR_MEMCACHE 91#if HAVE_APR_MEMCACHE
92/* Name the Session ID as: 92/* Name the Session ID as:
93 * IP:port.SessionID 93 * server:port.SessionID
94 * to disallow resuming sessions on different servers 94 * to disallow resuming sessions on different servers
95 */ 95 */
96static char* mgs_session_id2mc(conn_rec* c, unsigned char *id, int idlen) 96static char* mgs_session_id2mc(conn_rec* c, unsigned char *id, int idlen)
@@ -102,7 +102,7 @@ char *sz;
102 if (sz == NULL) 102 if (sz == NULL)
103 return NULL; 103 return NULL;
104 104
105 return apr_psprintf(c->pool, MC_TAG"%s:%d.%s", c->local_ip, c->base_server->port, sz); 105 return apr_psprintf(c->pool, MC_TAG"%s:%d.%s", c->base_server->server_hostname, c->base_server->port, sz);
106} 106}
107 107
108/** 108/**