mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +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>
This commit is contained in:
parent
a51f998956
commit
bea4aec521
@ -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…
Reference in New Issue
Block a user