sharkd: fix JSON boolean sanity check (CID 1486263)

This commit is contained in:
Pascal Quantin 2021-06-22 16:52:48 +02:00
parent fe92029dd4
commit d317382464
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ json_prep(char* buf, const jsmntok_t* tokens, int count)
}
else if (name_array[j].type == JSMN_PRIMITIVE && name_array[j].value_type == SHARKD_JSON_BOOLEAN)
{
if (!strcmp(attr_value, "true") && !strcmp(attr_value, "false"))
if (strcmp(attr_value, "true") && strcmp(attr_value, "false"))
{
sharkd_json_error(
rpcid, -32600, NULL,