]> granicus.if.org Git - php/commitdiff
fix possible zero deref
authorAnatol Belski <ab@php.net>
Tue, 28 Oct 2014 16:06:37 +0000 (17:06 +0100)
committerAnatol Belski <ab@php.net>
Tue, 28 Oct 2014 16:25:08 +0000 (17:25 +0100)
ext/com_dotnet/com_com.c

index 12fcb62c4001485cf31aa0109a8fad790b65ded3..6328a6b090475fef3eecf5bfe8f1c5577383e8cd 100644 (file)
@@ -475,7 +475,7 @@ int php_com_do_invoke_byref(php_com_dotnet_object *obj, zend_internal_function *
 
        /* assumption: that the active function (f) is the function we generated for the engine */
        if (!f || f->arg_info == NULL) {
-          f = NULL;
+               return FAILURE;
        }
        
        hr = php_com_get_id_of_name(obj, f->function_name->val, f->function_name->len, &dispid TSRMLS_CC);