]> granicus.if.org Git - postgresql/commit
I have been troubled by a segmentation fault when reloading from
authorBruce Momjian <bruce@momjian.us>
Thu, 26 Mar 1998 23:46:14 +0000 (23:46 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 26 Mar 1998 23:46:14 +0000 (23:46 +0000)
commitf07c7bf4e757b27b5079e40375f2179187e14bc6
tree2b0e5f81c5f64339913d6321e28a005b7bd7a727
parent0d8a7dc6a4fce29d36998c4829007baa7af7d3ef
I have been troubled by a segmentation fault when reloading from
a dumpall.  This has been happening when a second \connect is
encountered.

The faulty code was in fe-connect.c, where the memory for the user
password was freed, but the pointer itself was not set to NULL.
Later, the memory was reused and the password appeared not to be
empty, so that an attempt was made to reference it.

Oliver Elphick
src/interfaces/libpq/fe-connect.c