diff options
-rw-r--r-- | src/outbound_group_session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/outbound_group_session.c b/src/outbound_group_session.c index 8686993..4e4561a 100644 --- a/src/outbound_group_session.c +++ b/src/outbound_group_session.c @@ -338,7 +338,7 @@ size_t olm_outbound_group_session_key( uint32_t counter = session->ratchet.counter; // Encode counter as a big endian 32-bit number. - if (unsigned i = 0; i < 4; i++) { + for (unsigned i = 0; i < 4; i++) { *ptr++ = 0xFF & (counter >> 24); counter <<= 8; } |