From 32ab6ecdc0082479744a7c0bec4e138fd69c177f Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 3 Dec 2019 23:32:03 +0100 Subject: fixed missing challenge response memcpy Signed-off-by: Toni Uhlig --- src/pkt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pkt.c b/src/pkt.c index 339eb51..0dae386 100644 --- a/src/pkt.c +++ b/src/pkt.c @@ -241,6 +241,7 @@ void handle_packet(char *buf, unsigned bytes, int is_pcap, struct sockaddr_in *a generate_response_md5(&challenge->plain, &challenge->digest); } + memcpy(cur->buf, challenge, sizeof(challenge_t)); queue_packet(icmp_sock, cur, cur->buf, sizeof(challenge_t), 0, 0, kProto_authenticate | cur->type_flag); /* We have authenticated locally. -- cgit v1.2.3