diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-09-24 23:25:33 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-09-25 00:54:39 +0200 |
commit | 2103ee0811e3f606b8129d044e22cd33804e2117 (patch) | |
tree | 80e76fd406e5f6dbf745ca39fa6d55d85790c530 /nDPIsrvd.c | |
parent | 36f1786bde2572cf7eb44aa1384b61ecfebdeff3 (diff) |
Refactored client distributor C API.
* Still not perfect, but the code before was not even able to deal with JSON arrays.
Use common "speaking" function names for all functions in nDPIsrvd.h
* Provide a more or less generic and easy extendable JSON walk function.
* Modified C examples to align with the changed C API.
* c-collectd: Reduced lot's of code duplication by providing mapping tables.
* nDPId: IAT array requires one slot less (first packet has always an IAT of 0).
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPIsrvd.c')
-rw-r--r-- | nDPIsrvd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nDPIsrvd.c b/nDPIsrvd.c index 9057527f2..bad7c5813 100644 --- a/nDPIsrvd.c +++ b/nDPIsrvd.c @@ -717,6 +717,8 @@ static void free_remotes(int epollfd) { free_remote(epollfd, &remotes.desc[i]); } + nDPIsrvd_free(remotes.desc); + remotes.desc = NULL; } static int add_event(int epollfd, int events, int fd, void * ptr) |