aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Privoznik <mprivozn@redhat.com>2011-02-10 10:50:10 +0000
committerDaniel P. Berrange <berrange@redhat.com>2011-02-10 10:54:15 +0000
commit10713b1b98268a6eb05ba0912c1f4643c25f2564 (patch)
treefb66391c6d573d606922c0578da6c7b736bdbb41
parentbuild: distribute 'make syntax-check' tweaks (diff)
downloadlibvirt-10713b1b98268a6eb05ba0912c1f4643c25f2564.tar.gz
libvirt-10713b1b98268a6eb05ba0912c1f4643c25f2564.tar.bz2
libvirt-10713b1b98268a6eb05ba0912c1f4643c25f2564.zip
Fix typo in parsing of spice 'auth' data
A typo s/spice/vnc/ caused parsing of the spice 'auth' data to write into the wrong part of the struct, blowing away other unrelated data. * src/conf/domain_conf.c: s/vnc/spice/ in parsing spice auth
-rw-r--r--src/conf/domain_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 7c1fb4767..59adf3697 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -3873,7 +3873,7 @@ virDomainGraphicsDefParseXML(xmlNodePtr node, int flags) {
def->data.spice.listenAddr = virXMLPropString(node, "listen");
def->data.spice.keymap = virXMLPropString(node, "keymap");
- if (virDomainGraphicsAuthDefParseXML(node, &def->data.vnc.auth) < 0)
+ if (virDomainGraphicsAuthDefParseXML(node, &def->data.spice.auth) < 0)
goto error;
cur = node->children;