]> granicus.if.org Git - php/commit
Set an LDAP error code when failing ldap_bind due to null bytes
authorMatthew Daley <mattd@bugfuzz.com>
Sun, 28 Sep 2014 04:49:35 +0000 (17:49 +1300)
committerStanislav Malyshev <stas@php.net>
Sun, 28 Sep 2014 19:23:52 +0000 (12:23 -0700)
commitfcbe20d3577ad261f4b8a77714a2fb6facc85dbd
tree68f43df6c09734421e957f294c8dcb876b7d16c0
parent2711948d14cbcd5ababf82cae55ef25f3f870e1f
Set an LDAP error code when failing ldap_bind due to null bytes

Some applications check a LDAP link's error code after seeing ldap_bind
fail due to a null byte bind attempt and hence incorrectly receive the
last set error code.

Fix by setting an LDAP error code before returning in this case.
ext/ldap/ldap.c