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 static void
redistrib(uchar *buf, int len) redistrib(uchar *buf, int len)
{ {
static uchar outpkt[Udphdrsize + Maxudp + 1024];
Forwtarg *tp; Forwtarg *tp;
Udphdr *uh; Udphdr *uh;
static uchar outpkt[1500];
assert(len <= sizeof outpkt); assert(len <= sizeof outpkt);
memmove(outpkt, buf, len); memmove(outpkt, buf, len);