Skip to content

Commit

Permalink
Merge pull request #21 from matt-kowalski/master
Browse files Browse the repository at this point in the history
Fixed DNS header length in libnet_build_dnsv4
  • Loading branch information
troglobit committed Sep 29, 2023
2 parents b1d398c + f1ca14b commit 5aee868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nemesis-proto_dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int builddns(ETHERhdr *eth, IPhdr *ip, TCPhdr *tcp, UDPhdr *udp, DNShdr *dns,

libnet_build_dnsv4(((dns_state == 0)
? LIBNET_UDP_DNSV4_H
: LIBNET_TCP_DNSV4_H) + pd->file_len,
: LIBNET_TCP_DNSV4_H),
dns->id,
dns->flags,
dns->num_q, dns->num_answ_rr, dns->num_auth_rr,
Expand Down

0 comments on commit 5aee868

Please sign in to comment.