summaryrefslogtreecommitdiff
authorPeter Hutterer <peter.hutterer@who-t.net>2009-08-13 00:50:26 (GMT)
committer Peter Hutterer <peter.hutterer@who-t.net>2009-08-13 01:19:37 (GMT)
commit36e24a6d93bd5aced4e566b80bf2d03555fab9ca (patch) (side-by-side diff)
tree94d2485b9cf3cdf4d800096323f3b132674d2122
parentce69a06aff934b2dcded8606cab079ac6465007c (diff)
downloadxserver-36e24a6d93bd5aced4e566b80bf2d03555fab9ca.zip
xserver-36e24a6d93bd5aced4e566b80bf2d03555fab9ca.tar.gz
Xext: add missing return code check to ProcSyncDestroyAlarm
Introduced with 57aff88c7d0761e590806d07bee1c9410680c89f. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Xext/sync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Xext/sync.c b/Xext/sync.c
index 0bcf805..5f4ce56 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);