• Tom Lane's avatar
    Avoid null pointer dereference if error result lacks SQLSTATE. · 7f423503
    Tom Lane authored
    Although error results received from the backend should always have
    a SQLSTATE field, ones generated by libpq won't, making this code
    vulnerable to a crash after, say, untimely loss of connection.
    Noted by Coverity.
    
    Oversight in commit 403a3d91.  Back-patch to 9.5, as that was.
    7f423503
pg_backup_db.c 16.5 KB