mirror of
https://github.com/matrix-construct/construct
synced 2024-06-09 13:38:55 +02:00
ircd::net: Decay this array to properly pun the header.
This commit is contained in:
parent
917a73d048
commit
e95dd21e9e
|
@ -2233,9 +2233,10 @@ noexcept try
|
|||
sizeof(rfc1035::header)
|
||||
};
|
||||
|
||||
const uint8_t *const reply{this->reply};
|
||||
const rfc1035::header &header
|
||||
{
|
||||
*reinterpret_cast<const rfc1035::header *>(reply)
|
||||
*reinterpret_cast<const rfc1035::header *__restrict__>(reply)
|
||||
};
|
||||
|
||||
if(header.qr != 1)
|
||||
|
|
Loading…
Reference in a new issue