aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_io.c
diff options
context:
space:
mode:
authorGravatar Paul Querna 2005-04-25 00:34:34 +0000
committerGravatar Paul Querna 2005-04-25 00:34:34 +0000
commit836417fceaf154bde03418a1525ff149f5a07cca (patch)
tree3be662a030946441c6fbd9d052cb6590d26ef555 /src/gnutls_io.c
parent38435cc416d6b177c94266da98104cc29661e608 (diff)
Refactor finding the correct server record to fix resumed sessions.0.2.00.2.x
Diffstat (limited to 'src/gnutls_io.c')
-rw-r--r--src/gnutls_io.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gnutls_io.c b/src/gnutls_io.c
index acb6095..925517b 100644
--- a/src/gnutls_io.c
+++ b/src/gnutls_io.c
@@ -399,6 +399,16 @@ tryagain:
399 else { 399 else {
400 /* all done with the handshake */ 400 /* all done with the handshake */
401 ctxt->status = 1; 401 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 }
402 return 0; 412 return 0;
403 } 413 }
404} 414}