|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] xl: Fix segment fault of 'xl list'
If libxl_list_domain() returns NULL, segment fault occurs now.
Signed-off-by: Yu Zhiguo <yuzg@xxxxxxxxxxxxxx>
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);
}
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] xl: Fix segment fault of 'xl list',
Yu Zhiguo <=
|
|
|
|
|