fixed status value for infected emails

Change-Id: I1e6418aad09c59474e64d280f4512147f7813e26
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2017-01-27 17:15:06 +01:00
parent a3041d8251
commit 78d52fe06c

View File

@ -485,6 +485,7 @@ void process_data(struct session_ctx *sctx){
syslog(LOG_PRIORITY, "%s: found virus: %s", sctx->sdata->ttmpfile, sctx->virusinfo); syslog(LOG_PRIORITY, "%s: found virus: %s", sctx->sdata->ttmpfile, sctx->virusinfo);
sctx->counters->c_virus++; sctx->counters->c_virus++;
sctx->inj = OK; sctx->inj = OK;
sctx->status = S_STATUS_DISCARDED;
} else if(strlen(sctx->sdata->bodydigest) < 10) { } else if(strlen(sctx->sdata->bodydigest) < 10) {
syslog(LOG_PRIORITY, "%s: invalid digest", sctx->sdata->ttmpfile); syslog(LOG_PRIORITY, "%s: invalid digest", sctx->sdata->ttmpfile);
sctx->inj = ERR; sctx->inj = ERR;