+Fri Jan 16 11:48:41 EST 2009 Cole Robinson <crobinso@redhat.com>
+
+ * src/domain_conf.c: Fix segfault with console device back compat.
+
Thu Jan 15 20:12:19 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
* src/remote_internal.c: Fix bug when fork isn't available (Win32)
if (virDomainChrDefFormat(conn, &buf, def->console, "console") < 0)
goto cleanup;
} else if (def->nserials != 0) {
- /* ..else for legacy compat duplicate the serial device as a console */
- if (virDomainChrDefFormat(conn, &buf, def->serials[n], "console") < 0)
+ /* ..else for legacy compat duplicate the first serial device as a
+ * console */
+ if (virDomainChrDefFormat(conn, &buf, def->serials[0], "console") < 0)
goto cleanup;
}