From: Sascha Schumann Date: Sun, 25 Apr 1999 21:13:21 +0000 (+0000) Subject: that was a silly one X-Git-Tag: BEFORE_PHP4_APACHE_MODULE_CHANGE~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5883d6c221428af49afd7695cdae0f1f3f396aca;p=php that was a silly one --- diff --git a/ext/mcrypt/mcrypt.c b/ext/mcrypt/mcrypt.c index 989d43542f..3382b304b4 100644 --- a/ext/mcrypt/mcrypt.c +++ b/ext/mcrypt/mcrypt.c @@ -202,12 +202,12 @@ PHP_FUNCTION(mcrypt_ofb) convert_to_string(key); convert_to_string(iv); + bsize = get_block_size(cipher->value.lval); if(iv->value.str.len != bsize) { php3_error(E_WARNING, MCRYPT_IV_WRONG_SIZE); RETURN_FALSE; } - bsize = get_block_size(cipher->value.lval); nr = (data->value.str.len + bsize - 1) / bsize; nsize = nr * bsize; @@ -251,12 +251,12 @@ PHP_FUNCTION(mcrypt_cfb) convert_to_string(key); convert_to_string(iv); + bsize = get_block_size(cipher->value.lval); if(iv->value.str.len != bsize) { php3_error(E_WARNING, MCRYPT_IV_WRONG_SIZE); RETURN_FALSE; } - bsize = get_block_size(cipher->value.lval); nr = (data->value.str.len + bsize - 1) / bsize; nsize = nr * bsize;