xen/libxen_permissive.patch

21 lines
766 B
Diff

Index: xen-3.3.0-testing/tools/libxen/src/xen_common.c
===================================================================
--- xen-3.3.0-testing.orig/tools/libxen/src/xen_common.c
+++ xen-3.3.0-testing/tools/libxen/src/xen_common.c
@@ -902,8 +902,15 @@ static void parse_into(xen_session *s, x
0 != strcmp((char *)value_node->children->name, "struct") ||
value_node->children->children == NULL)
{
+#if PERMISSIVE
+ fprintf(stderr,
+ "Expected Map from the server, but didn't get one\n");
+ ((arbitrary_map **)value)[slot] = NULL;
+#else
+
server_error(s,
"Expected Map from the server, but didn't get it");
+#endif
}
else
{