diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-05 18:05:58 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-05 18:05:58 +0100 |
commit | 60f20292ea14dcd7abec9d6f801b66074ede2bc7 (patch) | |
tree | 9d77978a2f5819484e8a8ce0fdaf47cec54c8702 /src/libserver/milter.c | |
parent | 1a68045b8c27c13e0e520da3b3d2384184119fa0 (diff) | |
download | rspamd-60f20292ea14dcd7abec9d6f801b66074ede2bc7.tar.gz rspamd-60f20292ea14dcd7abec9d6f801b66074ede2bc7.zip |
[Minor] Zero length commands are allowed by milter proto
Diffstat (limited to 'src/libserver/milter.c')
-rw-r--r-- | src/libserver/milter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index 8d6baa71d..1ab42ae1c 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -697,7 +697,7 @@ rspamd_milter_consume_input (struct rspamd_milter_session *session, break; case st_read_data: /* We might need some more data in buffer for further steps */ - if (priv->parser.datalen == 0 || priv->parser.datalen > + if (priv->parser.datalen > RSPAMD_MILTER_MESSAGE_CHUNK * 2) { err = g_error_new (rspamd_milter_quark (), E2BIG, "Command length is too big: %zd", |