one last check to narrow down the possibilities
authorAlan T. DeKok <aland@freeradius.org>
Mon, 26 Sep 2016 15:00:33 +0000 (11:00 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 26 Sep 2016 15:00:33 +0000 (11:00 -0400)
src/lib/misc.c

index 50b12a4..af6ee2c 100644 (file)
@@ -1417,7 +1417,7 @@ int closefrom(int fd)
                        my_fd = strtol(dp->d_name, &endp, 10);
                        if (my_fd <= 0) continue;
 
-                       if ((endp > dp->d_name) && *endp) continue;
+                       if (*endp) continue;
 
                        if (my_fd == dirfd(dir)) continue;