diff options
author | Pascal Quantin <pascal@wireshark.org> | 2021-06-22 16:52:48 +0200 |
---|---|---|
committer | Pascal Quantin <pascal@wireshark.org> | 2021-06-22 16:52:48 +0200 |
commit | d3173824649743f33cb74f8876fd2fb46582f6ef (patch) | |
tree | 2e9221edecfb029b6bcfb4a27060ce75d9ffc4c7 | |
parent | fe92029dd4b7d3e2e4feea7e779f333c5e2f2676 (diff) |
sharkd: fix JSON boolean sanity check (CID 1486263)
-rw-r--r-- | sharkd_session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sharkd_session.c b/sharkd_session.c index 3ef89e1832..3c88feba80 100644 --- a/sharkd_session.c +++ b/sharkd_session.c @@ -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, |