Update of /cvsroot/sblim/sfcb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11579
Modified Files:
objectImpl.c
Log Message:
Fixed [ 1191278 ] wbemcli segv's on ec
Incorrect handling of CMPIstrings in addObjectPropertyH()
Index: objectImpl.c
===================================================================
RCS file: /cvsroot/sblim/sfcb/objectImpl.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- objectImpl.c 5 May 2005 22:12:34 -0000 1.5
+++ objectImpl.c 27 May 2005 15:09:13 -0000 1.6
@@ -1245,6 +1245,13 @@
p->data = d;
p->data.value.chars = (char *) addClString(hdr, d.value.chars);
}
+ else if (d.type == CMPI_string && (d.state & CMPI_nullValue) == 0) {
+ p->data = d;
+ if (d.value.string)
+ p->data.value.chars = (char*)addClString(hdr, (char*)d.value.string->hdl);
+ else p->data.value.chars=NULL;
+ p->data.type=CMPI_chars;
+ }
else if (d.type == CMPI_dateTime && (d.state & CMPI_nullValue) == 0) {
char chars[26];
dateTime2chars(d.value.dateTime, NULL, chars);
|