88a3102
diff -rup xen-3.3.0-orig/tools/xenstore/xenstore_client.c xen-3.3.0-new/tools/xenstore/xenstore_client.c
88a3102
--- xen-3.3.0-orig/tools/xenstore/xenstore_client.c	2008-08-22 10:49:09.000000000 +0100
88a3102
+++ xen-3.3.0-new/tools/xenstore/xenstore_client.c	2008-08-29 12:20:48.000000000 +0100
88a3102
@@ -589,7 +589,9 @@ main(int argc, char **argv)
b93c39f
 
b93c39f
     xsh = socket ? xs_daemon_open() : xs_domain_open();
b93c39f
     if (xsh == NULL)
b93c39f
-	err(1, socket ? "xs_daemon_open" : "xs_domain_open");
b93c39f
+	xsh = socket ? xs_domain_open() : xs_daemon_open();
b93c39f
+    if (xsh == NULL)
b93c39f
+	err(1, "xs_*_open");
b93c39f
 
88a3102
 again:
b93c39f
     if (transaction) {