diff options
author | Luca Deri <deri@ntop.org> | 2020-01-05 18:25:44 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2020-01-05 18:25:44 +0100 |
commit | ef16591f3f9d2673dfacf1c715c2e10dcd1da248 (patch) | |
tree | babb2c57fec88d3942a2f13a911f569af33f9ac3 /src/lib/protocols/mdns_proto.c | |
parent | 29dd45838da84bfa43da615d7624373392861751 (diff) | |
parent | 798bb6e2e113f10d9b710179553e4cef23222a61 (diff) |
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/lib/protocols/mdns_proto.c')
-rw-r--r-- | src/lib/protocols/mdns_proto.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/protocols/mdns_proto.c b/src/lib/protocols/mdns_proto.c index 506491be1..2b75f19ec 100644 --- a/src/lib/protocols/mdns_proto.c +++ b/src/lib/protocols/mdns_proto.c @@ -82,11 +82,9 @@ static int ndpi_int_check_mdns_payload(struct ndpi_detection_module_struct /* printf("==> [%d] %s\n", j, answer); */ - if(!ndpi_struct->disable_metadata_export) { - len = ndpi_min(sizeof(flow->protos.mdns.answer)-1, j); - strncpy(flow->protos.mdns.answer, (const char *)answer, len); - flow->protos.mdns.answer[len] = '\0'; - } + len = ndpi_min(sizeof(flow->protos.mdns.answer)-1, j); + strncpy(flow->protos.mdns.answer, (const char *)answer, len); + flow->protos.mdns.answer[len] = '\0'; NDPI_LOG_INFO(ndpi_struct, "found MDNS with answer query\n"); return 1; |