mirror of
https://github.com/optim-enterprises-bv/nDPId-2.git
synced 2025-11-01 10:47:51 +00:00
Let travis use pcap files from nDPI to produce some JSON output. (disabled, needs further testing..)
* Added pcap diff script * Added \n to JSON string end (useful for debugging and readability) * Use first host/server name character for hash calculation as well * Removed error'ing EPOLLHUP handling in nDPIsrvd (connection closing will be detected via read()) Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -90,7 +90,8 @@ int main(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if (buf[json_bytes - 1] != '}')
|
||||
if (buf[json_bytes - 2] != '}' ||
|
||||
buf[json_bytes - 1] != '\n')
|
||||
{
|
||||
fprintf(stderr, "BUG: Invalid JSON string: %.*s\n", (int)json_bytes, buf);
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user