]> granicus.if.org Git - php/commitdiff
- Add check
authorFelipe Pena <felipe@php.net>
Sat, 15 Aug 2009 14:46:34 +0000 (14:46 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 15 Aug 2009 14:46:34 +0000 (14:46 +0000)
ext/ldap/ldap.c

index 84be3ada26b5a2c0b27ef7f9c4b140a9a4a8cfa1..7cb03843c299a4a6b525138220aa990794fbd9c0 100644 (file)
@@ -802,7 +802,7 @@ cleanup:
        if (ldap_attrs != NULL) {
                efree(ldap_attrs);
        }
-       if (Z_TYPE_P(base_dn) == IS_UNICODE) {
+       if (Z_TYPE_P(base_dn) == IS_UNICODE && ldap_base_dn) {
                efree(ldap_base_dn);
        }
        if (!ret) {