File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,7 @@ tls_notify_app_accept (tls_ctx_t * ctx)
216216 {
217217 TLS_DBG (1 , "failed to allocate fifos" );
218218 session_free (app_session );
219+ ctx -> no_app_session = 1 ;
219220 return rv ;
220221 }
221222 ctx -> app_session_handle = session_handle (app_session );
@@ -455,12 +456,15 @@ tls_session_reset_callback (session_t * s)
455456 tls_disconnect_transport (ctx );
456457 }
457458 else
458- if ((app_session =
459- session_get_if_valid (ctx -> c_s_index , ctx -> c_thread_index )))
460459 {
461- session_free (app_session );
462- ctx -> c_s_index = SESSION_INVALID_INDEX ;
463- tls_disconnect_transport (ctx );
460+ app_session = session_get_if_valid (ctx -> c_s_index , ctx -> c_thread_index );
461+ if (app_session )
462+ {
463+ session_free (app_session );
464+ ctx -> c_s_index = SESSION_INVALID_INDEX ;
465+ ctx -> no_app_session = 1 ;
466+ tls_disconnect_transport (ctx );
467+ }
464468 }
465469}
466470
You can’t perform that action at this time.
0 commit comments