Update of /cvsroot/sblim/sfcb
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31465
Modified Files:
constClass.c
Log Message:
Fixed [ 1219622 ] Provider segfaults when getting keylist
constClass.c:134 faile to check for CMPI_nullValue.
Index: constClass.c
===================================================================
RCS file: /cvsroot/sblim/sfcb/constClass.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- constClass.c 26 Apr 2005 14:11:19 -0000 1.4
+++ constClass.c 13 Jun 2005 10:59:21 -0000 1.5
@@ -138,8 +138,9 @@
}
else if (rv.type == CMPI_ref) {
char *msg;
- rv.value.ref = getObjectPath(
- (char*)ClObjectGetClString(&cls->hdr,(ClString *) & rv.value.chars), &msg);
+ if ((rv.state & CMPI_nullValue)==0)
+ rv.value.ref = getObjectPath(
+ (char*)ClObjectGetClString(&cls->hdr,(ClString *) & rv.value.chars), &msg);
}
if (rv.type & CMPI_ARRAY) {
rv.value.array =
|