aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2015-07-08 20:44:21 -0400
committerNoah Misch <noah@leadboat.com>2015-07-08 20:44:21 -0400
commite135c3d99f4fcb03efa7b0b64445853ee2a74857 (patch)
treed44105b24f98ba4b1b78760dff837223e411de9f /src/backend/commands/dbcommands.c
parent3b14a17c8e60e8ae9227b9533667743508056c35 (diff)
downloadpostgresql-e135c3d99f4fcb03efa7b0b64445853ee2a74857.tar.gz
postgresql-e135c3d99f4fcb03efa7b0b64445853ee2a74857.zip
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).
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions