diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-08-13 10:50:26 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-08-13 11:19:37 +1000 |
commit | 36e24a6d93bd5aced4e566b80bf2d03555fab9ca (patch) | |
tree | 94d2485b9cf3cdf4d800096323f3b132674d2122 /Xext/sync.c | |
parent | ce69a06aff934b2dcded8606cab079ac6465007c (diff) |
Xext: add missing return code check to ProcSyncDestroyAlarm
Introduced with 57aff88c7d0761e590806d07bee1c9410680c89f.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xext/sync.c')
-rw-r--r-- | Xext/sync.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Xext/sync.c b/Xext/sync.c index 0bcf8057a..5f4ce56bc 100644 --- a/Xext/sync.c +++ b/Xext/sync.c @@ -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); |