don't modify the buffer passed in for peekheader()

This commit is contained in:
Michael Graff 1999-07-12 23:46:37 +00:00
parent 6398113e18
commit 5039f2cad3

View file

@ -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)