mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix the style bugs in the style bugs fix. The style bug fix made the
new function inconsistant with the rest of this file. The spelling and grammer fixes were good and remain.
This commit is contained in:
parent
08b8e973fe
commit
27e2c03a27
1 changed files with 6 additions and 4 deletions
|
|
@ -975,13 +975,15 @@ setugidsafety(p)
|
|||
|
||||
fpp = fdp->fd_ofiles;
|
||||
fdfp = fdp->fd_ofileflags;
|
||||
for (i = 0; i <= 2 && i <= fdp->fd_lastfile; i++, fpp++, fdfp++) {
|
||||
for (i = 0; i <= fdp->fd_lastfile; i++, fpp++, fdfp++) {
|
||||
if (i > 2)
|
||||
break;
|
||||
if (*fpp != NULL && is_unsafe(*fpp)) {
|
||||
if ((*fdfp & UF_MAPPED) != 0)
|
||||
(void)munmapfd(p, i);
|
||||
(void)closef(*fpp, p);
|
||||
(void) munmapfd(p, i);
|
||||
(void) closef(*fpp, p);
|
||||
*fpp = NULL;
|
||||
*fdfp = '\0';
|
||||
*fdfp = 0;
|
||||
if (i < fdp->fd_freefile)
|
||||
fdp->fd_freefile = i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue