xen: properly report out of memory when hvm_type is too small

This commit is contained in:
Guido Günther 2012-01-20 17:27:08 +01:00
parent a3de9829d8
commit c76a17b428

View File

@ -2598,7 +2598,7 @@ xenHypervisorMakeCapabilitiesInternal(virConnectPtr conn,
&line[subs[1].rm_so],
subs[1].rm_eo-subs[1].rm_so,
sizeof(hvm_type)) == NULL)
return NULL;
goto no_memory;
} else if (regexec (&flags_pae_rec, line, 0, NULL, 0) == 0)
host_pae = 1;
}