git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82667a6
)
Prevent segfault on wrong input data (not critical bug).
glite-jp-index_branch_RC31_3
merge_31_4_head_src
author
František Dvořák
<valtri@civ.zcu.cz>
Wed, 7 Nov 2007 15:08:17 +0000
(15:08 +0000)
committer
František Dvořák
<valtri@civ.zcu.cz>
Wed, 7 Nov 2007 15:08:17 +0000
(15:08 +0000)
org.glite.jp.index/src/soap_ops.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.index/src/soap_ops.c
b/org.glite.jp.index/src/soap_ops.c
index
f74a4e3
..
9091e92
100644
(file)
--- a/
org.glite.jp.index/src/soap_ops.c
+++ b/
org.glite.jp.index/src/soap_ops.c
@@
-153,6
+153,12
@@
static int checkIndexedConditions(glite_jpis_context_t ctx, struct _jpelem__Quer
for (k=0; k < in->__sizeconditions; k++) {
for (j=0; j < i; j++) {
char *attr = GLITE_SECURITY_GSOAP_LIST_GET(in->conditions, k)->attr;
+
+ if (!attr) {
+ glite_jpis_stack_error(ctx->jpctx, EINVAL, "condition attribute no %d is NULL", j);
+ ret = 0;
+ goto end;
+ }
if (!strcasecmp(attr, GLITE_JP_ATTR_JOBID) || !strcasecmp(attr, indexed_attrs[j])) {
ret = 0;
goto end;