diff options
author | Phil Sutter <phil@nwl.cc> | 2021-06-11 16:07:02 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-06-14 13:31:07 +0200 |
commit | f7b0eef8391ae7f89a3a82f6eeecaebe199224d7 (patch) | |
tree | b56c519be1a5c93afc3eaf92f474b8d77e84558d /src/evaluate.c | |
parent | 7c3b2a7acbdc793b822a230ec0c28086c7d0365d (diff) |
parser_json: Fix for memleak in tcp option error path
If 'kind' value is invalid, the function returned without freeing 'expr'
first. Fix this by performing the check before allocation.
Fixes: cb21869649208 ("json: tcp: add raw tcp option match support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src/evaluate.c')
0 files changed, 0 insertions, 0 deletions