Commit 5039f2ca authored by Michael Graff's avatar Michael Graff
Browse files

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

parent 6398113e
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment