]> granicus.if.org Git - postgresql/commit
Don't dump core if pq_comm_reset() is called before pq_init().
authorRobert Haas <rhaas@postgresql.org>
Fri, 5 Dec 2014 00:47:06 +0000 (19:47 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 5 Dec 2014 00:49:43 +0000 (19:49 -0500)
commit9a946298338e4783fcc98e0896712fdf2b2bfd56
tree20bdcae224685ce8a8d5842350f9e90150dd5373
parent5ede3a31171d83b94a773d997fe05b563f8ebb3d
Don't dump core if pq_comm_reset() is called before pq_init().

This can happen if an error occurs in a standalone backend.  This bug
was introduced by commit 2bd9e412f92bc6a68f3e8bcb18e04955cc35001d.

Reported by Álvaro Herrera.
src/backend/libpq/pqcomm.c