From 0a245504b5161166ba1ce52cd5194756980477c1 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Wed, 5 Aug 2009 23:28:21 +0200
Subject: [PATCH] Body: fixed erroneous return code for invalid optional
 operand.

---
 src/lib-sieve/plugins/body/tst-body.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib-sieve/plugins/body/tst-body.c b/src/lib-sieve/plugins/body/tst-body.c
index 100c8ed25..a775e29fc 100644
--- a/src/lib-sieve/plugins/body/tst-body.c
+++ b/src/lib-sieve/plugins/body/tst-body.c
@@ -356,7 +356,7 @@ static int ext_body_operation_execute
 
 		default:
 			sieve_runtime_trace_error(renv, "unknown optional operand");
-			return FALSE;
+			return SIEVE_EXEC_BIN_CORRUPT;
 		}
 	} while ( opt_code != SIEVE_MATCH_OPT_END );
 		
-- 
GitLab