From 63566714e3fe1ab35f2caf6c76e2f61af49d56c3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 27 Jan 2017 15:18:38 +0000 Subject: [PATCH] [Fix] Add packed attribute for protocol structure --- src/libserver/fuzzy_wire.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libserver/fuzzy_wire.h b/src/libserver/fuzzy_wire.h index fb0cbf3ad..da809f405 100644 --- a/src/libserver/fuzzy_wire.h +++ b/src/libserver/fuzzy_wire.h @@ -84,8 +84,8 @@ struct rspamd_fuzzy_stat_entry { guint32 fuzzy_cnt; }; -struct fuzzy_peer_cmd { - gboolean is_shingle; +RSPAMD_PACKED(fuzzy_peer_cmd) { + gint32 is_shingle; union { struct rspamd_fuzzy_cmd normal; struct rspamd_fuzzy_shingle_cmd shingle; -- 2.39.5