pgsql: Fix some null pointer dereferences in LDAP auth code

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix some null pointer dereferences in LDAP auth code
Date: 2017-11-10 19:36:35
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)munro(at)enterprisedb(dot)com>
Reviewed-by: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0bcdab58e83b2ac2caf4bd78e1583c11df97d4f1

Modified Files
--------------
src/backend/libpq/auth.c | 3 ++-
src/backend/libpq/hba.c | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-11-10 21:55:35 pgsql: Account for the effect of lossy pages when costing bitmap scans.
Previous Message Peter Eisentraut 2017-11-10 18:42:06 pgsql: Add some const decorations to prototypes