diff options
author | delphij <delphij@FreeBSD.org> | 2016-01-27 07:41:31 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2016-01-27 07:41:31 +0000 |
commit | c6068befe92b8a57c14895fce91c3f9f484112ae (patch) | |
tree | b594030d53fff8bb3c208102e7c681b13bd35f59 /contrib/ntp/sntp/main.c | |
parent | 081d2796398eccde663726fb1d7073ada3146548 (diff) | |
download | FreeBSD-src-c6068befe92b8a57c14895fce91c3f9f484112ae.zip FreeBSD-src-c6068befe92b8a57c14895fce91c3f9f484112ae.tar.gz |
Fix multiple vulnerabilities of ntp. [SA-16:09]
Fix Linux compatibility layer issetugid(2) system call
vulnerability. [SA-16:10]
Security: FreeBSD-SA-16:09.ntp
Security: FreeBSD-SA-16:10.linux
Approved by: so
Diffstat (limited to 'contrib/ntp/sntp/main.c')
-rw-r--r-- | contrib/ntp/sntp/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ntp/sntp/main.c b/contrib/ntp/sntp/main.c index 870db93..78ed7c2 100644 --- a/contrib/ntp/sntp/main.c +++ b/contrib/ntp/sntp/main.c @@ -1135,7 +1135,7 @@ generate_pkt ( if (pkt_key != NULL) { x_pkt->exten[0] = htonl(key_id); mac_size = 20; /* max room for MAC */ - mac_size = make_mac((char *)x_pkt, pkt_len, mac_size, + mac_size = make_mac(x_pkt, pkt_len, mac_size, pkt_key, (char *)&x_pkt->exten[1]); if (mac_size > 0) pkt_len += mac_size + 4; |