Make sure we are allowed to call the given callable

This commit is contained in:
Casper Langemeijer
2021-02-25 21:10:31 +01:00
parent dfea519a82
commit a73cba756c

2
ssh2.c
View File

@@ -222,7 +222,7 @@ static int php_ssh2_set_callback(LIBSSH2_SESSION *session, HashTable *ht, char *
}
zend_string_release(callback_zstring);
if (!zend_is_callable(handler, 0, NULL)) {
if (!zend_is_callable(handler, IS_CALLABLE_CHECK_NO_ACCESS, NULL)) {
return -1;
}