Commit a1465ba4 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

secur32: Initialize cbBuffer to 0 for NULL buffers.

This prevents schan_resize_current_buffer() from thinking there's a buffer.
parent 1ef80d5c
......@@ -619,7 +619,11 @@ static int schan_init_sec_ctx_get_next_buffer(const struct schan_transport *t, s
idx = schan_find_sec_buffer_idx(s->desc, 0, SECBUFFER_EMPTY);
if (idx != -1) s->desc->pBuffers[idx].BufferType = SECBUFFER_TOKEN;
}
if (idx != -1 && !s->desc->pBuffers[idx].pvBuffer) s->allow_buffer_resize = TRUE;
if (idx != -1 && !s->desc->pBuffers[idx].pvBuffer)
{
s->desc->pBuffers[idx].cbBuffer = 0;
s->allow_buffer_resize = TRUE;
}
}
return idx;
}
......
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