Remove bogus optimization that could lead to a double free of the

group list.
This commit is contained in:
Todd C. Miller
2012-03-16 12:00:32 -04:00
parent ced34a6e26
commit 2ff9d0318c

View File

@@ -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) {