diff options
author | Robert Morell <rmorell@nvidia.com> | 2014-04-18 18:29:42 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-04-21 11:44:02 -0700 |
commit | 668321e7e5acb41c0c7b299f57165e86dc74d7ed (patch) | |
tree | 5366b0400fbe156f87ab2a9fc1fd490582bb3530 /randr | |
parent | 138bf5ac9703b410a6066c303feea067680edf5a (diff) |
randr: Fix crash for NULL swap dispatch procs
The previous code was checking the wrong table for function pointers.
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'randr')
-rw-r--r-- | randr/randr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/randr.c b/randr/randr.c index 3c97714d8..6e3f14b4e 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); } |