diff options
author | Anatol Belski <ab@php.net> | 2014-10-28 17:06:37 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-10-28 17:25:08 +0100 |
commit | 05fa1b8ecc025335cef3bd3e22ba94bf9d0632fa (patch) | |
tree | ff7bcf7b42b089a3555c9348a05e8aea65a47414 | |
parent | e2951a191ef1afea777b865b9c80ac939b603f6b (diff) | |
download | php-git-05fa1b8ecc025335cef3bd3e22ba94bf9d0632fa.tar.gz |
fix possible zero deref
-rw-r--r-- | ext/com_dotnet/com_com.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |