]> granicus.if.org Git - postgresql/commit
Fix null pointer dereference in "\c" psql command.
authorNoah Misch <noah@leadboat.com>
Thu, 9 Jul 2015 00:44:21 +0000 (20:44 -0400)
committerNoah Misch <noah@leadboat.com>
Thu, 9 Jul 2015 00:44:27 +0000 (20:44 -0400)
commit5f173a9f2a9726c3be9f47eb2081ec4b089bf046
tree349a1adfea4b01de9fc8b958d978d144110669dc
parenta788cbfdc406952ec41e34b1df64e65128021312
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).
src/bin/psql/command.c