]> git.ipfire.org Git - thirdparty/postgresql.git/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)
commit458ccbf2b3a9a8566a405368825954cf99b8dbef
treeb69a089802623c919abf3de9984466162684b669
parentebe601c4daf3cdcde5156d941a6ae880ab94c7cd
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