mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
librpc/dns: remove original_id from dns_fake_tsig_rec
Cf RFC2845, 3.4.2. "TSIG Variables", the request id (original_id) is not used in the MAC calculation. This also explains the mysterious 2 bytes padding. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11520 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> (cherry picked from commit bea4aec521576576b8dc55065f11c6c5025d9c4f)
This commit is contained in:
parent
33a6532252
commit
d2ab8d34e2
@ -212,7 +212,6 @@ interface dns
|
||||
uint16 time_prefix; /* 0 until February 2106*/
|
||||
uint32 time;
|
||||
uint16 fudge;
|
||||
uint16 original_id;
|
||||
uint16 error;
|
||||
uint16 other_size;
|
||||
uint8 other_data[other_size];
|
||||
|
@ -207,9 +207,6 @@ WERROR dns_verify_tsig(struct dns_server *dns,
|
||||
return WERR_NOMEM;
|
||||
}
|
||||
|
||||
/*FIXME: Why is there too much padding? */
|
||||
buffer_len -= 2;
|
||||
|
||||
/* Now we also need to count down the additional record counter */
|
||||
arcount = RSVAL(buffer, 10);
|
||||
RSSVAL(buffer, 10, arcount-1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user