Allocate udp buffer dynamically

This commit is contained in:
Vladimir Dubrovin committed 2026-05-06 22:45:00 +03:00
1 parent cbab76fe41
commit 0e13f57139
5 files changed
+21 -10

No files matched your search

+2 -4
View File
@@ -569,11 +569,9 @@ struct srvparam {
uint16_t targetport;
unsigned char replace;
time_t time_start;
#ifndef NOUDPMAIN
unsigned char udpbuf[UDPBUFSIZE];
unsigned char udpbuf2[UDPBUFSIZE];
unsigned char *udpbuf;
unsigned char *udpbuf2;
int udplen;
#endif
};
struct clientparam {