diff options
author | Chiara Maggi <83759140+ChiaraMaggi@users.noreply.github.com> | 2023-07-11 22:45:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 22:45:19 +0200 |
commit | 0b0f255cc2b4ef18b9c1b51cf71e86de5b2c462b (patch) | |
tree | 38ac6f5ad37af500d0618109cae75bbb3a87f827 /src/lib/ndpi_main.c | |
parent | 950f5cc4e3ddd9bc0f8881950082283aa381c805 (diff) |
added feature to extract filename from http attachment (#2037)
* added feature to extract filename from http attachment
* fixed some issues
* added check for filename format
* added check for filename format
* remove an unnecessary print
* changed the size from 952 to 960
* modified some test result files
* small changes string size
* comment removed and mallocs checked
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r-- | src/lib/ndpi_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 1d2d728d4..10bbb4095 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -5356,6 +5356,9 @@ void ndpi_free_flow_data(struct ndpi_flow_struct* flow) { if(flow->http.server) ndpi_free(flow->http.server); + if(flow->http.filename) + ndpi_free(flow->http.filename); + if(flow->kerberos_buf.pktbuf) ndpi_free(flow->kerberos_buf.pktbuf); |