]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix some null pointer dereferences in LDAP auth code
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 10 Nov 2017 19:21:32 +0000 (14:21 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 10 Nov 2017 19:30:06 +0000 (14:30 -0500)
commit9efd83bfd32b38c675b263f532ebe9a6ec53149e
treee301743d36dda19da57e7572f11b29ee1a6250b3
parent2d7e35b3a931fcef48a1faf0a0fb04f3db57cbde
Fix some null pointer dereferences in LDAP auth code

An LDAP URL without a host name such as "ldap://" or without a base DN
such as "ldap://localhost" would cause a crash when reading pg_hba.conf.

If no binddn is configured, an error message might end up trying to print a
null pointer, which could crash on some platforms.

Author: Thomas Munro <thomas.munro@enterprisedb.com>
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
src/backend/libpq/auth.c
src/backend/libpq/hba.c