From 8981bbd464c1b1dc0704c9624c8955168d2e35db Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Sat, 9 Mar 2013 12:37:59 +0100 Subject: [PATCH] dnsapi: Increase maximum packet size. --- dlls/dnsapi/query.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/dnsapi/query.c b/dlls/dnsapi/query.c index 2116b113da4..b1d80dd8f00 100644 --- a/dlls/dnsapi/query.c +++ b/dlls/dnsapi/query.c @@ -578,13 +578,13 @@ static DNS_STATUS dns_get_serverlist( PIP4_ARRAY addrs, PDWORD len ) return ERROR_SUCCESS; } -static DNS_STATUS dns_do_query( PCSTR name, WORD type, DWORD options, - PDNS_RECORDA *result ) +#define DNS_MAX_PACKET_SIZE 4096 +static DNS_STATUS dns_do_query( PCSTR name, WORD type, DWORD options, PDNS_RECORDA *result ) { DNS_STATUS ret = DNS_ERROR_RCODE_NOT_IMPLEMENTED; unsigned int i, num; - unsigned char answer[NS_PACKETSZ]; + unsigned char answer[DNS_MAX_PACKET_SIZE]; ns_sect sections[] = { ns_s_an, ns_s_ar }; ns_msg msg;