]> granicus.if.org Git - php/commitdiff
Fix nullability of openssl_cms_sign() parameter
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 14 Oct 2020 09:31:58 +0000 (11:31 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 14 Oct 2020 09:34:15 +0000 (11:34 +0200)
ext/openssl/openssl.c

index efb0d9c626665d2c0f2d9964e058df4052afd926..b6556c23b53c3332424f68092f1597bcf21d2232 100644 (file)
@@ -5907,7 +5907,7 @@ PHP_FUNCTION(openssl_cms_sign)
                Z_PARAM_OPTIONAL
                Z_PARAM_LONG(flags)
                Z_PARAM_LONG(encoding)
-               Z_PARAM_PATH(extracertsfilename, extracertsfilename_len)
+               Z_PARAM_PATH_OR_NULL(extracertsfilename, extracertsfilename_len)
        ZEND_PARSE_PARAMETERS_END();
 
        RETVAL_FALSE;