git: 9front

Download patch

ref: d0759dd0ff0beb30aa1bf0267ff8163640c95fed
parent: 281194e97d2b6a43018db82de2bf8af2af9cd70f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jun 13 18:37:26 EDT 2015

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

--- a/sys/src/cmd/ndb/dnudpserver.c
+++ b/sys/src/cmd/ndb/dnudpserver.c
@@ -102,9 +102,9 @@
 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);
--