aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/dbsize.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2006-11-06 01:27:52 +0000
committerNeil Conway <neilc@samurai.com>2006-11-06 01:27:52 +0000
commit62fe410ec6cd7811b0cf76c8e175c47daba108d9 (patch)
tree1bb7e6d12653f94776039f5b52c0ac713f07b3dd /src/backend/utils/adt/dbsize.c
parent76d5667ba853092e31cc258c5b45d5bd04e59298 (diff)
downloadpostgresql-62fe410ec6cd7811b0cf76c8e175c47daba108d9.tar.gz
postgresql-62fe410ec6cd7811b0cf76c8e175c47daba108d9.zip
Minor fix for LDAP authentication: if an error occurs, we need to
manually release the LDAP handle via ldap_unbind(). This isn't a significant problem in practice because an error eventually results in exiting the process, but we can cleanup correctly without too much pain. In passing, fix an error in snprintf() usage: the "size" parameter to snprintf() is the size of the destination buffer, including space for the NUL terminator. Also, depending on the value of NAMEDATALEN, the old coding could have allowed for a buffer overflow.
Diffstat (limited to 'src/backend/utils/adt/dbsize.c')
0 files changed, 0 insertions, 0 deletions