{
GList *cur;
struct fuzzy_peer_cmd *io_cmd;
- gsize len;
+ guint32 len;
guint32 rev;
const gchar *p;
rspamd_fstring_t *reply;
}
p = (const char *)io_cmd;
+ len = GUINT32_TO_LE (len);
reply = rspamd_fstring_append (reply, (const char *)&len, sizeof (len));
reply = rspamd_fstring_append (reply, p, len);
}
break;
case read_data:
if (remain < len) {
- msg_err ("short update message while reading data, not processing");
+ msg_err ("short update message while reading data, not processing"
+ " (%zd is available, %d is required)", remain, len);
return;
}