Author: dumindu
Date: Tue Feb 19 09:43:20 2008
New Revision: 13898
Log:
Fixed a segfault.
Modified:
trunk/solutions/identity/modules/mod-cspace/cspace_validator.c
Modified: trunk/solutions/identity/modules/mod-cspace/cspace_validator.c
==============================================================================
--- trunk/solutions/identity/modules/mod-cspace/cspace_validator.c
(original)
+++ trunk/solutions/identity/modules/mod-cspace/cspace_validator.c Tue Feb
19 09:43:20 2008
@@ -102,7 +102,9 @@
/* free the haystack */
for (j=0; j<i; j++) {
- free(haystack[i]);
+ if (haystack[j]) {
+ free(haystack[j]);
+ }
}
fclose(fp);
@@ -117,7 +119,9 @@
/* free the haystack */
for (j=0; j<i; j++) {
- free(haystack[i]);
+ if (haystack[j]) {
+ free(haystack[j]);
+ }
}
fclose(fp);
_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev