summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2010-09-18 10:35:38 +0100
committerColin Guthrie <cguthrie@mandriva.org>2010-09-18 12:05:19 +0100
commit24014e779c889caf43bf9e9c29d645e505127743 (patch)
treedaba2701a334aad2cced248e2a4a065de02ac808 /src/utils
parent38778117f8e03f32ec5af8684a1013cc7807d66d (diff)
xcb: Ensure the XCB connection is valid before using it.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/pax11publish.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/pax11publish.c b/src/utils/pax11publish.c
index 111bee23..62b798c5 100644
--- a/src/utils/pax11publish.c
+++ b/src/utils/pax11publish.c
@@ -100,6 +100,11 @@ int main(int argc, char *argv[]) {
goto finish;
}
+ if (xcb_connection_has_error(xcb)) {
+ pa_log(_("xcb_connection_has_error() returned true"));
+ goto finish;
+ }
+
switch (mode) {
case DUMP: {
char t[1024];