From: Kurt Zeilenga Date: Fri, 10 Oct 2014 19:15:48 +0000 (-0700) Subject: closedir() replacement function should return a result X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=055996fc2e919a07cdb9faf19619b8f8c20d1588;p=openldap closedir() replacement function should return a result return success, ignoring result of FindClose --- diff --git a/libraries/liblutil/utils.c b/libraries/liblutil/utils.c index 66e4e9a05c..310380b623 100644 --- a/libraries/liblutil/utils.c +++ b/libraries/liblutil/utils.c @@ -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