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:56:38 -0400 |
commit | 8d0df2048f8c0663b41440eeaf73e8859c922e28 (patch) | |
tree | 5d09c5915732b0d91c28cd3af0e863fee0204f53 /src/backend/commands/cluster.c | |
parent | c6eb5740b3c352fb10bf61bb4465332ae6b28ab1 (diff) | |
download | postgresql-8d0df2048f8c0663b41440eeaf73e8859c922e28.tar.gz postgresql-8d0df2048f8c0663b41440eeaf73e8859c922e28.zip |
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 'src/backend/commands/cluster.c')
0 files changed, 0 insertions, 0 deletions