diff options
Diffstat (limited to 'llmnr-query.c')
-rw-r--r-- | llmnr-query.c | 5 |
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); |