diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2019-06-03 08:10:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-03 08:10:01 +0200 |
commit | 165decdf6c58f67a087c514a7fae58355a8272b4 (patch) | |
tree | 5f232b8fbc83aadaf4363ebc8076f74e7e506a78 /src/lib/ndpi_main.c | |
parent | 4441bc7033598583b36972000e0e704fe75a63ed (diff) | |
parent | 85776a532d0d7785c6be844d8318efca31fc5dcd (diff) |
Merge pull request #691 from pallas/fix-double-strdup
Fix double-strdup memory leak in ndpi_handle_rule
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index e200f32f0..7a954a710 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -2828,7 +2828,7 @@ int ndpi_handle_rule(struct ndpi_detection_module_struct *ndpi_mod, ndpi_mod->ndpi_num_supported_protocols, 0 /* can_have_a_subprotocol */, no_master, no_master, - ndpi_strdup(proto), + proto, NDPI_PROTOCOL_CATEGORY_UNSPECIFIED, /* TODO add protocol category support in rules */ ndpi_build_default_ports(ports_a, 0, 0, 0, 0, 0) /* TCP */, ndpi_build_default_ports(ports_b, 0, 0, 0, 0, 0) /* UDP */); |