From: Robert Morell Date: Sat, 19 Apr 2014 01:29:42 +0000 (-0700) Subject: randr: Fix crash for NULL swap dispatch procs X-Git-Tag: upstream/1.16~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=668321e7e5acb41c0c7b299f57165e86dc74d7ed;p=platform%2Fupstream%2Fxorg-server.git randr: Fix crash for NULL swap dispatch procs The previous code was checking the wrong table for function pointers. Signed-off-by: Robert Morell Reviewed-by: Alan Coopersmith Signed-off-by: Keith Packard --- diff --git a/randr/randr.c b/randr/randr.c index 3c97714..6e3f14b 100644 --- a/randr/randr.c +++ b/randr/randr.c @@ -679,7 +679,7 @@ static int SProcRRDispatch(ClientPtr client) { REQUEST(xReq); - if (stuff->data >= RRNumberRequests || !ProcRandrVector[stuff->data]) + if (stuff->data >= RRNumberRequests || !SProcRandrVector[stuff->data]) return BadRequest; return (*SProcRandrVector[stuff->data]) (client); }