Changeset 3369

Show
Ignore:
Timestamp:
02/22/10 05:12:58 (7 months ago)
Author:
kkaempf
Message:

Make it an empty array, since passing a NULL causes a
segfault in addXmlValue in sfcc/backend/cimxml/client.c where
there is a check to see if the array is empty and
data->value.array is dereferenced.
(fix by Suresh Sundriyal)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openwsman/trunk/src/plugins/cim/sfcc-interface.c

    r3365 r3369  
    247247        if (type & CMPI_ARRAY) { 
    248248                debug("*** xml2data: Array unsupported"); 
    249                 data->value.array = NULL
     249                data->value.array = newCMPIArray(0, type, NULL)
    250250        } else { 
    251251                switch (type) {