diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-05-12 11:56:38 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-05-12 11:57:21 -0400 |
commit | 3b65ffa2bf44ea3a1d2b20968a40e72e9fb4687f (patch) | |
tree | a997b36e47e83f3502c39990b8122f633014ae84 /doc/src | |
parent | c01da31713941c92611ebfc0c52e9ca310c146f8 (diff) |
Fix write-past-buffer-end in ldapServiceLookup().
The code to assemble ldap_get_values_len's output into a single string
wrote the terminating null one byte past where it should. Fix that,
and make some other cosmetic adjustments to make the code a trifle more
readable and more in line with usual Postgres coding style.
Also, free the "result" string when done with it, to avoid a permanent
memory leak.
Bug report and patch by Albe Laurenz, cosmetic adjustments by me.
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions