]> 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:25 +0000 (20:44 -0400)
commitfb990ce6c7d99d329843e5d70d4cdaf8d0825b38
treeee0c0f8830fb21be75b2fe2fa2b252646ecf9382
parent080c4dab3d9575449b81604051b160597cfd55c3
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