Обсуждение: pgsql: Fix null pointer dereference in "\c" psql command.

Поиск
Список
Период
Сортировка

pgsql: Fix null pointer dereference in "\c" psql command.

От
Noah Misch
Дата:
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_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6087bf1a198e42b811637101580af51a55fac505

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