xserver: Avoid sending uninitialized padding data over the network
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
b735a4b495
commit
ddb8d8945d
@@ -267,7 +267,8 @@ ProcQueryExtension(ClientPtr client)
|
||||
REQUEST(xQueryExtensionReq);
|
||||
|
||||
REQUEST_FIXED_SIZE(xQueryExtensionReq, stuff->nbytes);
|
||||
|
||||
|
||||
memset(&reply, 0, sizeof(xQueryExtensionReply));
|
||||
reply.type = X_Reply;
|
||||
reply.length = 0;
|
||||
reply.major_opcode = 0;
|
||||
@@ -301,6 +302,7 @@ ProcListExtensions(ClientPtr client)
|
||||
|
||||
REQUEST_SIZE_MATCH(xReq);
|
||||
|
||||
memset(&reply, 0, sizeof(xListExtensionsReply));
|
||||
reply.type = X_Reply;
|
||||
reply.nExtensions = 0;
|
||||
reply.length = 0;
|
||||
|
||||
Reference in New Issue
Block a user