mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 05:17:54 +00:00
Remove bogus optimization that could lead to a double free of the
group list.
This commit is contained in:
parent
ced34a6e26
commit
2ff9d0318c
@ -132,8 +132,6 @@ set_perms(int perm)
|
||||
goto bad;
|
||||
}
|
||||
ostate = &perm_stack[perm_stack_depth - 1];
|
||||
if (memcmp(state, ostate, sizeof(*state)) == 0)
|
||||
goto done;
|
||||
}
|
||||
|
||||
switch (perm) {
|
||||
@ -449,8 +447,6 @@ set_perms(int perm)
|
||||
goto bad;
|
||||
}
|
||||
ostate = &perm_stack[perm_stack_depth - 1];
|
||||
if (memcmp(state, ostate, sizeof(*state)) == 0)
|
||||
goto done;
|
||||
}
|
||||
|
||||
switch (perm) {
|
||||
@ -816,8 +812,6 @@ set_perms(int perm)
|
||||
goto bad;
|
||||
}
|
||||
ostate = &perm_stack[perm_stack_depth - 1];
|
||||
if (memcmp(state, ostate, sizeof(*state)) == 0)
|
||||
goto done;
|
||||
}
|
||||
|
||||
switch (perm) {
|
||||
@ -1105,8 +1099,6 @@ set_perms(int perm)
|
||||
goto bad;
|
||||
}
|
||||
ostate = &perm_stack[perm_stack_depth - 1];
|
||||
if (memcmp(state, ostate, sizeof(*state)) == 0)
|
||||
goto done;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1390,8 +1382,6 @@ set_perms(int perm)
|
||||
goto bad;
|
||||
}
|
||||
ostate = &perm_stack[perm_stack_depth - 1];
|
||||
if (memcmp(state, ostate, sizeof(*state)) == 0)
|
||||
goto done;
|
||||
}
|
||||
|
||||
switch (perm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user