From: Anatol Belski Date: Tue, 28 Oct 2014 16:06:37 +0000 (+0100) Subject: fix possible zero deref X-Git-Tag: PRE_PHP7_REMOVALS~87^2~57 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05fa1b8ecc025335cef3bd3e22ba94bf9d0632fa;p=php fix possible zero deref --- diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c index 12fcb62c40..6328a6b090 100644 --- a/ext/com_dotnet/com_com.c +++ b/ext/com_dotnet/com_com.c @@ -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);