Changeset 836417f in mod_gnutls for src/gnutls_io.c


Ignore:
Timestamp:
Apr 24, 2005, 8:34:34 PM (15 years ago)
Author:
Paul Querna <chip@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, msva, upstream
Children:
84cb5b2
Parents:
38435cc
Message:

Refactor finding the correct server record to fix resumed sessions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    r38435cc r836417f  
    400400        /* all done with the handshake */
    401401        ctxt->status = 1;
     402        /* If the session was resumed, we did not set the correct
     403         * server_rec in ctxt->sc.  Go Find it. (ick!)
     404         */
     405        if (gnutls_session_is_resumed(ctxt->session)) {
     406            mgs_srvconf_rec* sc;
     407            sc = mgs_find_sni_server(ctxt->session);
     408            if (sc) {
     409                ctxt->sc = sc;
     410            }
     411        }
    402412        return 0;
    403413    }
Note: See TracChangeset for help on using the changeset viewer.