dri2: return FALSE not BadValue.
With 1.7 if you try and send a DRI2Connect with this value set to anything but 0, the server will segfault due to the strlen in the function this returns to, since BadValue != FALSE. Fixed via other work in 1.8. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
1242e494c8
commit
3ae6a3779d
|
@ -387,7 +387,7 @@ DRI2Connect(ScreenPtr pScreen, unsigned int driverType, int *fd,
|
|||
return FALSE;
|
||||
|
||||
if (driverType != DRI2DriverDRI)
|
||||
return BadValue;
|
||||
return FALSE;
|
||||
|
||||
*fd = ds->fd;
|
||||
*driverName = ds->driverName;
|
||||
|
|
Loading…
Reference in New Issue
Block a user