aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-09-17 23:24:02 +0200
committerLuca Deri <deri@ntop.org>2020-09-17 23:24:02 +0200
commitd81bc1add631009eec2b6cb87e42720db4f17af3 (patch)
treec401ee25e5ee4f484e281b6d3e43ff41d77170bb /src/lib/ndpi_utils.c
parent753b5dde16bae60299ca8e31afb4f519b13629c1 (diff)
Reworked MDNS dissector that is not based on the DNS dissector
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r--src/lib/ndpi_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c
index 897096b70..1a8459c34 100644
--- a/src/lib/ndpi_utils.c
+++ b/src/lib/ndpi_utils.c
@@ -1172,7 +1172,7 @@ int ndpi_dpi2json(struct ndpi_detection_module_struct *ndpi_struct,
case NDPI_PROTOCOL_MDNS:
ndpi_serialize_start_of_block(serializer, "mdns");
- ndpi_serialize_string_string(serializer, "answer", flow->protos.mdns.answer);
+ ndpi_serialize_string_string(serializer, "answer", (const char*)flow->host_server_name);
ndpi_serialize_end_of_block(serializer);
break;