From ef767e83a0f57603b69471c171a472e457730ecc Mon Sep 17 00:00:00 2001 From: SJ Date: Wed, 31 Aug 2016 17:47:18 +0200 Subject: [PATCH] session fix Change-Id: I1d4e8057f8db594981072584dd3a370795c8d727 Signed-off-by: SJ --- src/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session.c b/src/session.c index 9f5093de..2b7a6492 100644 --- a/src/session.c +++ b/src/session.c @@ -126,7 +126,7 @@ int handle_smtp_session(struct session_ctx *sctx){ gettimeofday(&tv2, &tz); - sdata.__acquire = tvdiff(tv2, tv1); + sctx->sdata->__acquire = tvdiff(tv2, tv1); if(rc){ @@ -348,7 +348,7 @@ QUITTING: close_database(sctx->sdata); #endif - if(sdata.tls == 1){ + if(sctx->sdata->tls == 1){ SSL_shutdown(sctx->data->ssl); SSL_free(sctx->data->ssl); }