mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
Be less restrictive on initializing and magic numbers
This commit is contained in:
@@ -143,7 +143,6 @@ dns_tcpmsg_init(isc_mem_t *mctx, isc_socket_t *sock, dns_tcpmsg_t *tcpmsg)
|
|||||||
REQUIRE(mctx != NULL);
|
REQUIRE(mctx != NULL);
|
||||||
REQUIRE(sock != NULL);
|
REQUIRE(sock != NULL);
|
||||||
REQUIRE(tcpmsg != NULL);
|
REQUIRE(tcpmsg != NULL);
|
||||||
REQUIRE(!VALID_TCPMSG(tcpmsg));
|
|
||||||
|
|
||||||
tcpmsg->magic = TCPMSG_MAGIC;
|
tcpmsg->magic = TCPMSG_MAGIC;
|
||||||
tcpmsg->size = 0;
|
tcpmsg->size = 0;
|
||||||
|
Reference in New Issue
Block a user