mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
dns_message_create() API update
This commit is contained in:
@@ -82,7 +82,7 @@ dump_packet(isc_mem_t *mctx, unsigned char *buf, u_int len)
|
||||
isc_buffer_init(&source, buf, len, ISC_BUFFERTYPE_BINARY);
|
||||
isc_buffer_add(&source, len);
|
||||
|
||||
result = dns_message_create(mctx, &message, DNS_MESSAGE_INTENT_PARSE);
|
||||
result = dns_message_create(mctx, DNS_MESSAGE_INTENT_PARSE, &message);
|
||||
CHECKRESULT(result, "dns_message_create failed");
|
||||
|
||||
result = dns_message_parse(message, &source);
|
||||
|
Reference in New Issue
Block a user