Commit e135c3d
committed
Fix null pointer dereference in "\c" psql command.
The psql crash happened when no current connection existed. (The second
new check is optional given today's undocumented NULL argument handling
in PQhost() etc.) Back-patch to 9.0 (all supported versions).1 parent 3b14a17 commit e135c3d
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1753 | 1753 | | |
1754 | 1754 | | |
1755 | 1755 | | |
1756 | | - | |
| 1756 | + | |
| 1757 | + | |
1757 | 1758 | | |
1758 | 1759 | | |
1759 | 1760 | | |
| |||
1880 | 1881 | | |
1881 | 1882 | | |
1882 | 1883 | | |
1883 | | - | |
| 1884 | + | |
| 1885 | + | |
1884 | 1886 | | |
1885 | 1887 | | |
1886 | 1888 | | |
| |||
0 commit comments