From: Vsevolod Stakhov Date: Fri, 27 Jan 2017 15:18:38 +0000 (+0000) Subject: [Fix] Add packed attribute for protocol structure X-Git-Tag: 1.5.0~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63566714e3fe1ab35f2caf6c76e2f61af49d56c3;p=thirdparty%2Frspamd.git [Fix] Add packed attribute for protocol structure --- diff --git a/src/libserver/fuzzy_wire.h b/src/libserver/fuzzy_wire.h index fb0cbf3ade..da809f405e 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;