summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2008-02-07 20:14:16 -0500
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2008-02-07 20:14:16 -0500
commitde16a8c53046764dbdf26a87acc5c984ef00d818 (patch)
treec497b3170c37482c3009e6a894d3da9fb773d96d /dix
parent31934132a490b1b8ae73010c44e0b23217d8dab2 (diff)
XACE: Correct some protocol error values in the colormap routines.
Diffstat (limited to 'dix')
-rw-r--r--dix/dispatch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c
index 663bf7dd5..0bca4417e 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -2537,7 +2537,7 @@ ProcFreeColormap(ClientPtr client)
else
{
client->errorValue = stuff->id;
- return rc;
+ return (rc == BadValue) ? BadColor : rc;
}
}
@@ -2566,7 +2566,7 @@ ProcCopyColormapAndFree(ClientPtr client)
else
{
client->errorValue = stuff->srcCmap;
- return rc;
+ return (rc == BadValue) ? BadColor : rc;
}
}
@@ -2658,7 +2658,7 @@ ProcListInstalledColormaps(ClientPtr client)
xfree(preply);
rc = client->noClientException;
out:
- return (rc == BadValue) ? BadColor : rc;
+ return rc;
}
int