[PATCH] Actually send the reply in SProcDRI2Connect()

Alan Coopersmith alan.coopersmith at oracle.com
Mon May 21 21:51:42 PDT 2012


No point faking up a reply for remote clients if we never send it to them.

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 hw/xfree86/dri2/dri2ext.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/xfree86/dri2/dri2ext.c b/hw/xfree86/dri2/dri2ext.c
index 2579a5c..c1130e3 100644
--- a/hw/xfree86/dri2/dri2ext.c
+++ b/hw/xfree86/dri2/dri2ext.c
@@ -589,11 +589,13 @@ SProcDRI2Connect(ClientPtr client)
     if (sizeof(*stuff) / 4 != client->req_len)
         return BadLength;
 
+    rep.type = X_Reply;
     rep.sequenceNumber = client->sequence;
     swaps(&rep.sequenceNumber);
     rep.length = 0;
     rep.driverNameLength = 0;
     rep.deviceNameLength = 0;
+    WriteToClient(client, sizeof(xDRI2ConnectReply), &rep);
 
     return Success;
 }
-- 
1.7.9.2



More information about the xorg-devel mailing list