Xext: add missing return code check to ProcSyncDestroyAlarm
Introduced with 57aff88c7d
.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ce69a06aff
commit
36e24a6d93
|
@ -1770,6 +1770,7 @@ ProcSyncDestroyAlarm(ClientPtr client)
|
|||
|
||||
rc = dixLookupResourceByType((pointer *)&pAlarm, stuff->alarm, RTAlarm,
|
||||
client, DixDestroyAccess);
|
||||
if (rc != Success)
|
||||
return (rc == BadValue) ? SyncErrorBase + XSyncBadAlarm : rc;
|
||||
|
||||
FreeResource(stuff->alarm, RT_NONE);
|
||||
|
|
Loading…
Reference in New Issue
Block a user