X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fopenssl%2Fcipher.c;h=5d9bebcdb68e9b4f8d1cbfac05c4c1768fa31655;hp=c0307f8231b5f81b094dddd61277d9e1f07669ec;hb=c7752ca73e582d63412e7f40984cff2fca02c22f;hpb=d0aa0817d2387e89555ed090d900f61c56b19caa diff --git a/src/openssl/cipher.c b/src/openssl/cipher.c index c0307f82..5d9bebcd 100644 --- a/src/openssl/cipher.c +++ b/src/openssl/cipher.c @@ -171,7 +171,7 @@ bool cipher_counter_xor(cipher_t *cipher, const void *indata, size_t inlen, void break; } - *out++ = *in++ ^ cipher->counter->counter[cipher->counter->n++]; + *out++ = *in++ ^ cipher->counter->block[cipher->counter->n++]; if(cipher->counter->n >= cipher->cipher->block_size) cipher->counter->n = 0;