mirror of
https://github.com/php/php-src.git
synced 2026-04-28 02:33:17 +02:00
Sodium ext: Isolate a return statement for consistency
This commit is contained in:
@@ -622,9 +622,8 @@ PHP_FUNCTION(sodium_memcmp)
|
||||
if (len1 != len2) {
|
||||
zend_throw_exception(sodium_exception_ce, "arguments have different sizes", 0);
|
||||
return;
|
||||
} else {
|
||||
RETURN_LONG(sodium_memcmp(buf1, buf2, len1));
|
||||
}
|
||||
RETURN_LONG(sodium_memcmp(buf1, buf2, len1));
|
||||
}
|
||||
|
||||
PHP_FUNCTION(sodium_crypto_shorthash)
|
||||
|
||||
Reference in New Issue
Block a user