mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
sanitized strcmp check
This commit is contained in:
+1
-1
@@ -248,7 +248,7 @@ unsigned j;
|
|||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
do { \
|
do { \
|
||||||
if (val && !strcmp(val->pzName, name)==0) \
|
if (val && strcmp(val->pzName, name)!=0) \
|
||||||
continue; \
|
continue; \
|
||||||
s_name[num] = talloc_strdup(s_name, val->v.strVal); \
|
s_name[num] = talloc_strdup(s_name, val->v.strVal); \
|
||||||
num++; \
|
num++; \
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ static struct cfg_options available_options[] = {
|
|||||||
do { \
|
do { \
|
||||||
if (num >= MAX_CONFIG_ENTRIES) \
|
if (num >= MAX_CONFIG_ENTRIES) \
|
||||||
break; \
|
break; \
|
||||||
if (val && !strcmp(val->pzName, name)==0) \
|
if (val && strcmp(val->pzName, name)!=0) \
|
||||||
continue; \
|
continue; \
|
||||||
s_name[num] = talloc_strdup(pool, val->v.strVal); \
|
s_name[num] = talloc_strdup(pool, val->v.strVal); \
|
||||||
num++; \
|
num++; \
|
||||||
|
|||||||
Reference in New Issue
Block a user