mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-04 06:22:03 -04:00
don't modify the buffer passed in for peekheader()
This commit is contained in:
parent
6398113e18
commit
5039f2cad3
1 changed files with 2 additions and 2 deletions
|
|
@ -1552,8 +1552,8 @@ dns_message_peekheader(isc_buffer_t *source, dns_messageid_t *idp,
|
|||
if (r.length < DNS_MESSAGE_HEADERLEN)
|
||||
return (DNS_R_UNEXPECTEDEND);
|
||||
|
||||
id = isc_buffer_getuint16(source);
|
||||
flags = isc_buffer_getuint16(source);
|
||||
id = isc_buffer_getuint16(&buffer);
|
||||
flags = isc_buffer_getuint16(&buffer);
|
||||
flags &= DNS_MESSAGE_FLAG_MASK;
|
||||
|
||||
if (flagsp != NULL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue