diff options
author | Xin LI <delphij@FreeBSD.org> | 2016-01-21 08:50:56 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2016-01-21 08:50:56 +0000 |
commit | cbb26d1b6673ba1c6efd6e36a06fb6a56263b5fc (patch) | |
tree | 72c8a10ba42f04018a461504b789125f97944bda /sntp/networking.c | |
parent | c373d9289d1987abe45e339b5aa37f05460e977f (diff) |
Diffstat (limited to 'sntp/networking.c')
-rw-r--r-- | sntp/networking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sntp/networking.c b/sntp/networking.c index 6a176c57f4f4..21cf09a86b31 100644 --- a/sntp/networking.c +++ b/sntp/networking.c @@ -184,7 +184,7 @@ process_pkt ( ** keyfile and compare those md5sums. */ mac_size = exten_len << 2; - if (!auth_md5((char *)rpkt, pkt_len - mac_size, + if (!auth_md5(rpkt, pkt_len - mac_size, mac_size - 4, pkt_key)) { is_authentic = FALSE; break; |