mirror of
https://github.com/php/php-src.git
synced 2026-04-30 03:33:17 +02:00
Merge branch 'PHP-7.4'
* PHP-7.4: Updated NEWS Fix a NULL dereferencing crash in php-ldap
This commit is contained in:
+3
-1
@@ -260,7 +260,9 @@ static void _php_ldap_control_to_array(LDAP *ld, LDAPControl* ctrl, zval* array,
|
||||
add_assoc_long(&value, "target", target);
|
||||
add_assoc_long(&value, "count", count);
|
||||
add_assoc_long(&value, "errcode", errcode);
|
||||
add_assoc_stringl(&value, "context", context->bv_val, context->bv_len);
|
||||
if ( context && (context->bv_len >= 0) ) {
|
||||
add_assoc_stringl(&value, "context", context->bv_val, context->bv_len);
|
||||
}
|
||||
add_assoc_zval(array, "value", &value);
|
||||
} else {
|
||||
add_assoc_null(array, "value");
|
||||
|
||||
Reference in New Issue
Block a user