summaryrefslogtreecommitdiff
path: root/llmnr-query.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-02-19 16:39:36 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-02-19 16:39:36 +0100
commitd08ff82b68afb63fa2fe447a6730f151caf1612b (patch)
tree27dfce2b29fbda4974dda2a4affadf38dbd9d48f /llmnr-query.c
parent90c70f6412130bc20c9f79e9edb8268ce7569ce7 (diff)
llmnr-query: Inform about empty responses
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'llmnr-query.c')
-rw-r--r--llmnr-query.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/llmnr-query.c b/llmnr-query.c
index cf738e4..66bbe89 100644
--- a/llmnr-query.c
+++ b/llmnr-query.c
@@ -252,6 +252,11 @@ int main(int argc, char **argv)
hdr = (struct llmnr_hdr *)pkt_put(p, sizeof(*hdr));
ancount = htons(hdr->ancount);
+ if (ancount == 0) {
+ log_info("LLMNR response: no answer records returned\n");
+ continue;
+ }
+
/* skip the original query */
pkt_put(p, query_pkt_len);