From 0a638d38cb9e5cbe896d08cca614d517e612b216 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Fri, 13 Jul 2012 14:58:43 +0000 Subject: [PATCH] Fix LESS condition parsing in query utility (it could fix SB #42670). --- org.glite.lb.client/examples/query_ext.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.client/examples/query_ext.c b/org.glite.lb.client/examples/query_ext.c index 643c0d9..8f8d4c9 100644 --- a/org.glite.lb.client/examples/query_ext.c +++ b/org.glite.lb.client/examples/query_ext.c @@ -368,9 +368,10 @@ static char *get_op(char *src, edg_wll_QueryOp *op) else if ( src[i] == '>' ) *op = EDG_WLL_QUERY_OP_GREATER; else if ( src[i] == '<' ) { - if ( (src[i+1] != '\0') && (src[++i] == '>') ) + if ( (src[i+1] != '\0') && (src[i] == '>') ) { *op = EDG_WLL_QUERY_OP_UNEQUAL; - else + i++; + } else *op = EDG_WLL_QUERY_OP_LESS; } else return NULL; -- 1.8.2.3