security: Don't count RetainPermanent clients twice
authorPeter Harris <pharris@opentext.com>
Mon, 15 Jul 2013 23:44:45 +0000 (19:44 -0400)
committerAdam Jackson <ajax@redhat.com>
Tue, 10 Sep 2013 17:26:25 +0000 (13:26 -0400)
commit132507eba93e4dfd466d5c30c9b818cdc6f8536e
treeab63f28f009c1272a9aa84f05b2074d2d3af9a7b
parent20c2a3bcb11b5baf564e2c73a477ba23f5ae2b10
security: Don't count RetainPermanent clients twice

If a RetainPermanent client is subsequently killed by a KillClient
request, the reference count is decremented twice. This can cause the
server to prematurely kill other clients using the same Authorization.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Peter Harris <pharris@opentext.com>
Xext/security.c