From f92057cc3928015d676e77e846104741d8e43b05 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 13 Jun 2015 22:37:26 +0200 Subject: [PATCH] ndb/dns: use same buffer size of udp packet in redistrib() as dnudpserver() (fixes assert) --- sys/src/cmd/ndb/dnudpserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/ndb/dnudpserver.c b/sys/src/cmd/ndb/dnudpserver.c index 08bb10aea..ea6185a33 100644 --- a/sys/src/cmd/ndb/dnudpserver.c +++ b/sys/src/cmd/ndb/dnudpserver.c @@ -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);