
static const char *xen_net_rasd_to_vdev(CMPIInstance *inst, struct virt_device *dev) { + const char *val = NULL; + free(dev->dev.net.type); - dev->dev.net.type = strdup("bridge"); + dev->dev.net.type = strdup("network"); + + if (cu_get_str_prop(inst, "PoolID", &val) != CMPI_RC_OK) + val = _default_network(inst); + + if (val == NULL) + return 0;
This should return an error string, since the function returns a char *. I missed this in the last set, I think. I wouldn't complain though if this change came as a follow up patch so you don't have to resend the whole set. ;) -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com