Initialize memory so we get zero-terminated string
This commit is contained in:
parent
2b13f59f6a
commit
690e09ba57
1 changed files with 1 additions and 0 deletions
1
l2tpns.c
1
l2tpns.c
|
|
@ -4715,6 +4715,7 @@ void processudp(uint8_t *buf, int len, struct sockaddr_in *addr, uint16_t indexu
|
|||
{
|
||||
if (n <= sizeof(authresp))
|
||||
{
|
||||
memset(authresp, 0, sizeof(authresp));
|
||||
memcpy(authresp, b, n);
|
||||
authrespn = n;
|
||||
LOG(4, s, t, " Proxy Auth Response\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue