Remove bogus optimization that could lead to a double free of the
group list.
This commit is contained in:
@@ -132,8 +132,6 @@ set_perms(int perm)
|
|||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
ostate = &perm_stack[perm_stack_depth - 1];
|
ostate = &perm_stack[perm_stack_depth - 1];
|
||||||
if (memcmp(state, ostate, sizeof(*state)) == 0)
|
|
||||||
goto done;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (perm) {
|
switch (perm) {
|
||||||
@@ -449,8 +447,6 @@ set_perms(int perm)
|
|||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
ostate = &perm_stack[perm_stack_depth - 1];
|
ostate = &perm_stack[perm_stack_depth - 1];
|
||||||
if (memcmp(state, ostate, sizeof(*state)) == 0)
|
|
||||||
goto done;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (perm) {
|
switch (perm) {
|
||||||
@@ -816,8 +812,6 @@ set_perms(int perm)
|
|||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
ostate = &perm_stack[perm_stack_depth - 1];
|
ostate = &perm_stack[perm_stack_depth - 1];
|
||||||
if (memcmp(state, ostate, sizeof(*state)) == 0)
|
|
||||||
goto done;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (perm) {
|
switch (perm) {
|
||||||
@@ -1105,8 +1099,6 @@ set_perms(int perm)
|
|||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
ostate = &perm_stack[perm_stack_depth - 1];
|
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;
|
goto bad;
|
||||||
}
|
}
|
||||||
ostate = &perm_stack[perm_stack_depth - 1];
|
ostate = &perm_stack[perm_stack_depth - 1];
|
||||||
if (memcmp(state, ostate, sizeof(*state)) == 0)
|
|
||||||
goto done;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (perm) {
|
switch (perm) {
|
||||||
|
Reference in New Issue
Block a user