Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

pgsql: Fix null pointer dereference in "\c" psql command. - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Fix null pointer dereference in "\c" psql command.
Date
Msg-id E1ZCzyp-0008S5-Cd@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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).

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/5f173a9f2a9726c3be9f47eb2081ec4b089bf046

Modified Files
--------------
src/bin/psql/command.c |    6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Fix null pointer dereference in "\c" psql command.
Next
From: Noah Misch
Date:
Subject: pgsql: Fix null pointer dereference in "\c" psql command.