--- src/libdspam.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/libdspam.c b/src/libdspam.c index 921df48..5d83113 100644 --- a/src/libdspam.c +++ b/src/libdspam.c @@ -587,7 +587,7 @@ dspam_process (DSPAM_CTX * CTX, const char *message) /* Fail if _ds_operate() was unable to process message */ if (spam_result != DSR_ISSPAM && spam_result != DSR_ISINNOCENT) { - return EFAILURE; + goto outtoe; } /* Force decision if a classification was specified */ @@ -609,6 +609,7 @@ dspam_process (DSPAM_CTX * CTX, const char *message) strcpy(CTX->class, LANG_CLASS_INNOCENT); } + outtoe: if (is_toe) CTX->operating_mode = DSM_PROCESS; if (is_undertrain) @@ -630,8 +631,8 @@ dspam_process (DSPAM_CTX * CTX, const char *message) else { LOG(LOG_WARNING, "received invalid result (! DSR_ISSPAM || DSR_INNOCENT) " - ": %d", CTX->result); - return EUNKNOWN; + ": %d", spam_result); + return EFAILURE; } } -- 1.6.3.3 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel