Initialize memory so we get zero-terminated string

This commit is contained in:
Tassilo Schweyer 2025-05-05 03:15:26 +02:00
parent 2b13f59f6a
commit 690e09ba57

View file

@ -4715,6 +4715,7 @@ void processudp(uint8_t *buf, int len, struct sockaddr_in *addr, uint16_t indexu
{ {
if (n <= sizeof(authresp)) if (n <= sizeof(authresp))
{ {
memset(authresp, 0, sizeof(authresp));
memcpy(authresp, b, n); memcpy(authresp, b, n);
authrespn = n; authrespn = n;
LOG(4, s, t, " Proxy Auth Response\n"); LOG(4, s, t, " Proxy Auth Response\n");