Commit a552587d authored by Paul Bryan Roberts's avatar Paul Bryan Roberts Committed by Alexandre Julliard

ntdll: Avoid potential infinite loop.

parent 9a4e519a
......@@ -293,13 +293,15 @@ NTSTATUS WINAPI NtQueryInformationToken(
char stack_buffer[256];
unsigned int server_buf_len = sizeof(stack_buffer);
void *buffer = stack_buffer;
BOOLEAN need_more_memory = FALSE;
BOOLEAN need_more_memory;
/* we cannot work out the size of the server buffer required for the
* input size, since there are two factors affecting how much can be
* stored in the buffer - number of groups and lengths of sids */
do
{
need_more_memory = FALSE;
SERVER_START_REQ( get_token_groups )
{
TOKEN_GROUPS *groups = tokeninfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment