* xl: Fix segment fault of 'xl list'
@ 2010-04-26 5:08 Yu Zhiguo
0 siblings, 0 replies; only message in thread
From: Yu Zhiguo @ 2010-04-26 5:08 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
If libxl_list_domain() returns NULL, segment fault occurs now.
Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
diff -r c87ec146229a -r 5727e3c71513 tools/libxl/xl.c
--- a/tools/libxl/xl.c Fri Apr 23 15:04:26 2010 +0100
+++ b/tools/libxl/xl.c Mon Apr 26 21:07:19 2010 +0800
@@ -1521,7 +1521,7 @@
info = libxl_list_domain(&ctx, &nb_domain);
- if (info < 0) {
+ if (!info) {
fprintf(stderr, "libxl_domain_infolist failed.\n");
exit(1);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-26 5:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 5:08 xl: Fix segment fault of 'xl list' Yu Zhiguo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).