session fix

Change-Id: I1d4e8057f8db594981072584dd3a370795c8d727
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2016-08-31 17:47:18 +02:00
parent 3174bcb016
commit ef767e83a0

View File

@ -126,7 +126,7 @@ int handle_smtp_session(struct session_ctx *sctx){
gettimeofday(&tv2, &tz); gettimeofday(&tv2, &tz);
sdata.__acquire = tvdiff(tv2, tv1); sctx->sdata->__acquire = tvdiff(tv2, tv1);
if(rc){ if(rc){
@ -348,7 +348,7 @@ QUITTING:
close_database(sctx->sdata); close_database(sctx->sdata);
#endif #endif
if(sdata.tls == 1){ if(sctx->sdata->tls == 1){
SSL_shutdown(sctx->data->ssl); SSL_shutdown(sctx->data->ssl);
SSL_free(sctx->data->ssl); SSL_free(sctx->data->ssl);
} }