mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
closedir() replacement function should return a result
return success, ignoring result of FindClose
This commit is contained in:
parent
a1e3b1cf3c
commit
055996fc2e
@ -437,8 +437,9 @@ struct dirent *readdir(DIR *dir)
|
||||
}
|
||||
int closedir(DIR *dir)
|
||||
{
|
||||
FindClose(dir->dir);
|
||||
(void) FindClose(dir->dir);
|
||||
ber_memfree(dir);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user