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)
216
216
{
217
217
TLS_DBG (1 , "failed to allocate fifos" );
218
218
session_free (app_session );
219
+ ctx -> no_app_session = 1 ;
219
220
return rv ;
220
221
}
221
222
ctx -> app_session_handle = session_handle (app_session );
@@ -455,12 +456,15 @@ tls_session_reset_callback (session_t * s)
455
456
tls_disconnect_transport (ctx );
456
457
}
457
458
else
458
- if ((app_session =
459
- session_get_if_valid (ctx -> c_s_index , ctx -> c_thread_index )))
460
459
{
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
+ }
464
468
}
465
469
}
466
470
You can’t perform that action at this time.
0 commit comments