]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
close directory. Closes #5381
authorAlan T. DeKok <aland@freeradius.org>
Tue, 23 Jul 2024 13:36:39 +0000 (06:36 -0700)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 24 Jul 2024 15:16:20 +0000 (08:16 -0700)
src/main/conffile.c

index ad5a5fef85aa195cc8fe08ddb786e0563e23ff7c..4ed7d055b05ee069095ac0442d62e865b3399ff3 100644 (file)
@@ -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) ||