diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-12-03 23:32:03 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-12-03 23:33:45 +0100 |
commit | 32ab6ecdc0082479744a7c0bec4e138fd69c177f (patch) | |
tree | 904e13fda326da52a4b95bf0a525a94e6fc10845 | |
parent | 936763ade224c377837516230dd2e3b520a8efaa (diff) |
fixed missing challenge response memcpy
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r-- | src/pkt.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. |