diff options
-rw-r--r-- | ext/ldap/ldap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index c439c7358d..e384f3c044 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -370,6 +370,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: %ld", port); RETURN_FALSE; } |