Off-by-one error in the sequence-wrapping proof, and therefore in the corresponding code.
This commit is contained in:
parent
e5458e477d
commit
d1cfd4d0a2
|
@ -136,7 +136,7 @@ unsigned int XCBSendRequest(XCBConnection *c, int flags, struct iovec *vector, c
|
|||
while(c->out.writing)
|
||||
pthread_cond_wait(&c->out.cond, &c->iolock);
|
||||
|
||||
if(req->isvoid && c->out.request == c->in.request_expected + (1 << 16) - 1)
|
||||
if(req->isvoid && c->out.request == c->in.request_expected + (1 << 16) - 2)
|
||||
{
|
||||
prefix[0] = sync.packet;
|
||||
request = ++c->out.request;
|
||||
|
|
Loading…
Reference in New Issue