소스 검색

[Fix] Fuzzy add/delete handlers are badly broken for compression

pull/4874/head
Vsevolod Stakhov 2 달 전
부모
커밋
a73a67f91d
No account linked to committer's email address
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7
    2
      src/plugins/fuzzy_check.c

+ 7
- 2
src/plugins/fuzzy_check.c 파일 보기

@@ -3467,8 +3467,13 @@ fuzzy_process_handler(struct rspamd_http_connection_entry *conn_ent,
if (!is_hash) {
/* Allocate message from string */
/* XXX: what about encrypted messages ? */
task->msg.begin = msg->body_buf.begin;
task->msg.len = msg->body_buf.len;
if (!rspamd_task_load_message(task, msg, msg->body_buf.begin, msg->body_buf.len)) {
msg_warn_task("cannot load message for fuzzy");
rspamd_controller_send_error(conn_ent, 400, "Message load error");
rspamd_task_free(task);

return;
}

r = rspamd_message_parse(task);


Loading…
취소
저장