ndb/dns: use same buffer size of udp packet in redistrib() as dnudpserver() (fixes assert)

This commit is contained in:
cinap_lenrek 2015-06-13 22:37:26 +02:00
parent cc3abe39aa
commit f92057cc39

View file

@ -102,9 +102,9 @@ addforwtarg(char *host)
static void
redistrib(uchar *buf, int len)
{
static uchar outpkt[Udphdrsize + Maxudp + 1024];
Forwtarg *tp;
Udphdr *uh;
static uchar outpkt[1500];
assert(len <= sizeof outpkt);
memmove(outpkt, buf, len);