Changeset c223c85 in mod_gnutls for src/gnutls_cache.c


Ignore:
Timestamp:
Dec 9, 2007, 6:35:24 AM (12 years ago)
Author:
Nokis Mavrogiannopoulos <nmav@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
a2cb12f
Parents:
c055502
git-author:
Nikos Mavrogiannopoulos <nmav@…> (12/09/07 06:35:24)
git-committer:
Nokis Mavrogiannopoulos <nmav@…> (12/09/07 06:35:24)
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    rc055502 rc223c85  
    5555
    5656/* Name the Session ID as:
    57  * IP:port.SessionID
     57 * server:port.SessionID
    5858 * to disallow resuming sessions on different servers
    5959 */
     
    6868      return -1;
    6969     
    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);
    7171    dbmkey->dsize = strlen( dbmkey->dptr);
    7272   
     
    9191#if HAVE_APR_MEMCACHE
    9292/* Name the Session ID as:
    93  * IP:port.SessionID
     93 * server:port.SessionID
    9494 * to disallow resuming sessions on different servers
    9595 */
     
    103103      return NULL;
    104104     
    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);
    106106}
    107107
Note: See TracChangeset for help on using the changeset viewer.