Skip to content

Commit aba24b5

Browse files
committed
Initialize conn->Pfdebug to NULL when creating a connection
Failing to do this can cause a crash, and I suspect is what has happened with a buildfarm member reporting mysterious failures. This is an ancient bug, but I'm not backpatching since evidently nobody cares about PQtrace in older releases. Discussion: https://postgr.es/m/3333908.1617227066@sss.pgh.pa.us
1 parent a6d3dea commit aba24b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3952,6 +3952,7 @@ makeEmptyPGconn(void)
39523952
conn->verbosity = PQERRORS_DEFAULT;
39533953
conn->show_context = PQSHOW_CONTEXT_ERRORS;
39543954
conn->sock = PGINVALID_SOCKET;
3955+
conn->Pfdebug = NULL;
39553956

39563957
/*
39573958
* We try to send at least 8K at a time, which is the usual size of pipe

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy