Browse Source

Set the correct epoch for encrypted requests.

tags/1.0.4
Vsevolod Stakhov 8 years ago
parent
commit
648dc17191
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/fuzzy_storage.c

+ 4
- 2
src/fuzzy_storage.c View File

@@ -336,7 +336,8 @@ rspamd_fuzzy_cmd_from_wire (guchar *buf, guint buflen, struct fuzzy_session *s)
msg_debug ("invalid fuzzy command of size %d received", buflen);
return FALSE;
}
s->epoch = epoch;
/* Encrypted is epoch 10 at least */
s->epoch = RSPAMD_FUZZY_EPOCH10;
break;
case sizeof (struct rspamd_fuzzy_encrypted_shingle_cmd):
s->cmd_type = CMD_ENCRYPTED_SHINGLE;
@@ -352,7 +353,8 @@ rspamd_fuzzy_cmd_from_wire (guchar *buf, guint buflen, struct fuzzy_session *s)
msg_debug ("invalid fuzzy command of size %d received", buflen);
return FALSE;
}
s->epoch = epoch;

s->epoch = RSPAMD_FUZZY_EPOCH10;
break;
default:
msg_debug ("invalid fuzzy command of size %d received", buflen);

Loading…
Cancel
Save