From 24014e779c889caf43bf9e9c29d645e505127743 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sat, 18 Sep 2010 10:35:38 +0100 Subject: xcb: Ensure the XCB connection is valid before using it. --- src/utils/pax11publish.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/utils') 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]; -- cgit