0
0
Fork 0
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:
Jason Volk 2018-01-26 22:21:34 -08:00
parent 917a73d048
commit e95dd21e9e

View file

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