]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix typo in parsing of spice 'auth' data
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 10 Feb 2011 10:50:10 +0000 (10:50 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 10 Feb 2011 10:54:15 +0000 (10:54 +0000)
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

src/conf/domain_conf.c

index 7c1fb4767da1ead618ff264c43cfe77236f7d022..59adf3697950f91762c14a68be75eb369f1bc131 100644 (file)
@@ -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;