From: Alan T. DeKok Date: Tue, 23 Jul 2024 13:36:39 +0000 (-0700) Subject: close directory. Closes #5381 X-Git-Tag: release_3_2_6~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45f2293ff7ec56ea19f808f7ddf891b6524aaec0;p=thirdparty%2Ffreeradius-server.git close directory. Closes #5381 --- diff --git a/src/main/conffile.c b/src/main/conffile.c index ad5a5fef85a..4ed7d055b05 100644 --- a/src/main/conffile.c +++ b/src/main/conffile.c @@ -2606,6 +2606,7 @@ static int cf_section_read(char const *filename, int *lineno, FILE *fp, value, dp->d_name); if (slen >= (int) sizeof(buf2) || slen < 0) { ERROR("%s: Full file path is too long.", dp->d_name); + closedir(dir); return -1; } if ((stat(buf2, &stat_buf) != 0) ||