summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2010-09-08 09:51:21 -0700
committerNathan Kinder <nkinder@redhat.com>2010-09-08 10:15:47 -0700
commitcd99e197f22f7a26fae930d72b507a92e06313a8 (patch)
tree04be16331e0cef46e9eeb0b1dc6fc525152796c5 /ldap/servers/plugins
parent57edbb0f52649d2d4c643b58da360619ae078b7d (diff)
downloadds-cd99e197f22f7a26fae930d72b507a92e06313a8.tar.gz
ds-cd99e197f22f7a26fae930d72b507a92e06313a8.tar.xz
ds-cd99e197f22f7a26fae930d72b507a92e06313a8.zip
Bug 630093 - (cov#15518) Need to intialize fd in ldbm2ldif code
Currently, the ldbm_back_ldbm2ldif() function could bail due to an error before fd is set. We then attempt to close the file that fd refers to. We should initialize fd to STDOUT_FILENUM, as we skip calling close() if fd is set to STDOUT_FILENUM. Additionally, I noticed that we could call close() when fd is negative or if it is STDERR or STDIN. I fixed this so close() is not called in those cases.
Diffstat (limited to 'ldap/servers/plugins')
0 files changed, 0 insertions, 0 deletions