diff --git a/crypto/modes/cfb128.c b/crypto/modes/cfb128.c index e5938c613..a64898e77 100644 --- a/crypto/modes/cfb128.c +++ b/crypto/modes/cfb128.c @@ -84,7 +84,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, if (enc) { #if !defined(OPENSSL_SMALL_FOOTPRINT) - if (16%sizeof(size_t) == 0) do { /* always true actually */ + if (16%sizeof(size_t) == 0) { /* always true actually */ + do { while (n && len) { *(out++) = ivec[n] ^= *(in++); --len; @@ -114,7 +115,8 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, } *num = n; return; - } while (0); + } while (0); + } /* the rest would be commonly eliminated by x86* compiler */ #endif while (l