mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: fix leak
This commit is contained in:
commit
78c15e2744
@ -419,6 +419,7 @@ PHP_FUNCTION(ldap_connect)
|
||||
int urllen = hostlen + sizeof( "ldap://:65535" );
|
||||
|
||||
if (port <= 0 || port > 65535) {
|
||||
efree(ld);
|
||||
php_error_docref(NULL, E_WARNING, "invalid port number: " ZEND_LONG_FMT, port);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user