[Libvirt-cim] [PATCH 4 of 4] Fixes swapped resultClass and assocClass for reference calls

Heidi Eckhart heidieck at linux.vnet.ibm.com
Fri Nov 30 10:04:01 UTC 2007


# HG changeset patch
# User Heidi Eckhart <heidieck at linux.vnet.ibm.com>
# Date 1196420558 -3600
# Node ID e28651c07e99cbda1e96ea46c7bc5c06c7b09bb4
# Parent  af0383b49185941652cae1b78f6584a8d2664155
Fixes swapped resultClass and assocClass for reference calls

In the case of reference or referenceNames calls the client
given resultClass needs to be internally handled as assocClass.
Signed-off-by: Heidi Eckhart <heidieck at linux.vnet.ibm.com>

diff -r af0383b49185 -r e28651c07e99 std_association.c
--- a/std_association.c	Fri Nov 30 11:56:44 2007 +0100
+++ b/std_association.c	Fri Nov 30 12:02:38 2007 +0100
@@ -397,8 +397,8 @@ CMPIStatus stda_ReferenceNames(CMPIAssoc
                                const char *role)
 {
         struct std_assoc_info info = {
-                NULL,
                 resultClass,
+                NULL,
                 role,
                 NULL,
                 NULL,
@@ -418,8 +418,8 @@ CMPIStatus stda_References(CMPIAssociati
                            const char **properties)
 {
         struct std_assoc_info info = {
-                NULL,
                 resultClass,
+                NULL,
                 role,
                 NULL,
                 properties,




More information about the Libvirt-cim mailing list