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>
This commit is contained in:
parent
138bf5ac97
commit
668321e7e5
|
@ -679,7 +679,7 @@ static int
|
||||||
SProcRRDispatch(ClientPtr client)
|
SProcRRDispatch(ClientPtr client)
|
||||||
{
|
{
|
||||||
REQUEST(xReq);
|
REQUEST(xReq);
|
||||||
if (stuff->data >= RRNumberRequests || !ProcRandrVector[stuff->data])
|
if (stuff->data >= RRNumberRequests || !SProcRandrVector[stuff->data])
|
||||||
return BadRequest;
|
return BadRequest;
|
||||||
return (*SProcRandrVector[stuff->data]) (client);
|
return (*SProcRandrVector[stuff->data]) (client);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue