]> granicus.if.org Git - php/commitdiff
Fix uninitialized vars
authorAnatol Belski <ab@php.net>
Mon, 23 Oct 2017 10:02:41 +0000 (12:02 +0200)
committerAnatol Belski <ab@php.net>
Mon, 23 Oct 2017 10:02:41 +0000 (12:02 +0200)
ext/sodium/libsodium.c

index f3e5d267ceb2c495abbcbfb160029538762d05cd..06a763627dc6fa8a9b2f5119ceb430cc5e17cc4a 100644 (file)
@@ -1935,7 +1935,7 @@ PHP_FUNCTION(sodium_crypto_pwhash_str_needs_rehash)
        size_t     hash_str_len;
 
        if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "sll",
-                                                                       &hash_str, &hash_str_len) == FAILURE) {
+                                                                       &hash_str, &hash_str_len, &opslimit, &memlimit) == FAILURE) {
                zend_throw_exception(sodium_exception_ce, "a PHP string is required", 0);
                return;
        }