summaryrefslogtreecommitdiff
path: root/llmnr.c
diff options
context:
space:
mode:
Diffstat (limited to 'llmnr.c')
-rw-r--r--llmnr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/llmnr.c b/llmnr.c
index 8b5b387..e007de5 100644
--- a/llmnr.c
+++ b/llmnr.c
@@ -167,7 +167,7 @@ static void llmnr_respond(unsigned int ifindex, const struct llmnr_hdr *hdr,
log_info("Response packet length: %zu\n", pkt_len(p));
- if (sendto(sock, p->head, pkt_len(p), 0, sa, sizeof(struct sockaddr_in)) < 0) {
+ if (sendto(sock, p->data, pkt_len(p), 0, sa, sizeof(struct sockaddr_in)) < 0) {
log_err("Failed to send response: %s\n", strerror(errno));
}