When the password change failed we updated the graphic definition
anyways, which is not desired.
VIR_DOMAIN_GRAPHICS_TYPE_VNC,
&dev->data.vnc.auth,
driver->vncPassword);
+ if (ret < 0)
+ return ret;
/* Steal the new dev's char * reference */
VIR_FREE(olddev->data.vnc.auth.passwd);
&dev->data.spice.auth,
driver->spicePassword);
+ if (ret < 0)
+ return ret;
+
/* Steal the new dev's char * reference */
VIR_FREE(olddev->data.spice.auth.passwd);
olddev->data.spice.auth.passwd = dev->data.spice.auth.passwd;