vm-dump-metrics: Fix segmentation fault if Xenstore does not exist.
authorRichard Jones <rjones@redhat.com>
Fri, 16 Oct 2009 12:53:08 +0000 (13:53 +0100)
committerRichard Jones <rjones@redhat.com>
Fri, 16 Oct 2009 12:57:15 +0000 (13:57 +0100)
commitef2efc11744f232ad0cc2ec31a505deadb871418
tree1c62a5e11424187789b3cd6643d354de2e1ec4be
parentea2f772da718adb868150e9c4074ad49f0c374cb
vm-dump-metrics: Fix segmentation fault if Xenstore does not exist.

Running vm-dump-metrics when there is no metrics disk *and*
no Xen / Xenstore, causes a segmentation fault because of an
unchecked call to xs_domain_open.

Reported to Red Hat as:

https://bugzilla.redhat.com/show_bug.cgi?id=529348
libmetrics/libmetrics.c