]> source.dussan.org Git - rspamd.git/commitdiff
Another stupid mistake in random setup.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Feb 2014 16:25:02 +0000 (16:25 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Feb 2014 16:25:02 +0000 (16:25 +0000)
src/dns.c

index 70c22977dd0d1a15223bc2e4aa44cb9884dc8d1d..5bd7766d697fa3ae97fb06d017f5ef9dc870938b 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -79,7 +79,7 @@ dns_permutor_init (struct dns_permutor *p)
 
        /* Setup ctx */
        chacha_keysetup (&p->ctx, p->perm_buf, PERMUTOR_KSIZE * 8, 0);
-       chacha_ivsetup (&p->ctx, p->perm_buf + PERMUTOR_KSIZE * 8);
+       chacha_ivsetup (&p->ctx, p->perm_buf + PERMUTOR_KSIZE);
 
        chacha_encrypt_bytes (&p->ctx, p->perm_buf, p->perm_buf, sizeof (p->perm_buf));