forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0c98d0d
committed
Fix some null pointer dereferences in LDAP auth code
An LDAP URL without a host name such as "ldap://" or without a base DNsuch 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 anull pointer, which could crash on some platforms.Author: Thomas Munro <thomas.munro@enterprisedb.com>Reviewed-by: Michael Paquier <michael.paquier@gmail.com>1 parent0e1539b commit0c98d0d
2 files changed
+6
-3
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2520 | 2520 |
| |
2521 | 2521 |
| |
2522 | 2522 |
| |
2523 |
| - | |
| 2523 | + | |
| 2524 | + | |
2524 | 2525 |
| |
2525 | 2526 |
| |
2526 | 2527 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1739 | 1739 |
| |
1740 | 1740 |
| |
1741 | 1741 |
| |
1742 |
| - | |
| 1742 | + | |
| 1743 | + | |
1743 | 1744 |
| |
1744 |
| - | |
| 1745 | + | |
| 1746 | + | |
1745 | 1747 |
| |
1746 | 1748 |
| |
1747 | 1749 |
| |
|
0 commit comments
Comments
(0)