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