aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2019-12-03 23:32:03 +0100
committerToni Uhlig <matzeton@googlemail.com>2019-12-03 23:33:45 +0100
commit32ab6ecdc0082479744a7c0bec4e138fd69c177f (patch)
tree904e13fda326da52a4b95bf0a525a94e6fc10845
parent936763ade224c377837516230dd2e3b520a8efaa (diff)
fixed missing challenge response memcpy
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--src/pkt.c1
1 files changed, 1 insertions, 0 deletions
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.