From 78d52fe06c3b972656c033681cc1e7b065dc727d Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 27 Jan 2017 17:15:06 +0100 Subject: [PATCH] fixed status value for infected emails Change-Id: I1e6418aad09c59474e64d280f4512147f7813e26 Signed-off-by: SJ --- src/session.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/session.c b/src/session.c index e24f671b..d050feeb 100644 --- a/src/session.c +++ b/src/session.c @@ -485,6 +485,7 @@ void process_data(struct session_ctx *sctx){ syslog(LOG_PRIORITY, "%s: found virus: %s", sctx->sdata->ttmpfile, sctx->virusinfo); sctx->counters->c_virus++; sctx->inj = OK; + sctx->status = S_STATUS_DISCARDED; } else if(strlen(sctx->sdata->bodydigest) < 10) { syslog(LOG_PRIORITY, "%s: invalid digest", sctx->sdata->ttmpfile); sctx->inj = ERR;