From: Vsevolod Stakhov Date: Sat, 2 Dec 2017 12:34:00 +0000 (+0000) Subject: [Minor] Process invalid command types X-Git-Tag: 1.7.0~390 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd0e6cd7edd54abd403239137491821a02d153e3;p=thirdparty%2Frspamd.git [Minor] Process invalid command types --- diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index c8e55267e6..3b3fce36f6 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -820,6 +820,9 @@ rspamd_fuzzy_process_command (struct fuzzy_session *session) encrypted = TRUE; is_shingle = TRUE; break; + default: + msg_err ("invalid command type: %d", session->cmd_type); + return; } memset (&result, 0, sizeof (result));