mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Initialize fromlen before calling recvfrom to avoid passing in random
stack garbage. Obtained from: NetBSD 1.13
This commit is contained in:
parent
0086085a03
commit
200ad46cd3
1 changed files with 1 additions and 0 deletions
|
|
@ -1224,6 +1224,7 @@ handle_reply(int fd, SVCXPRT *xprt)
|
|||
goto done;
|
||||
|
||||
do {
|
||||
fromlen = sizeof(ss);
|
||||
inlen = recvfrom(fd, buffer, RPC_BUF_MAX, 0,
|
||||
(struct sockaddr *)&ss, &fromlen);
|
||||
} while (inlen < 0 && errno == EINTR);
|
||||
|
|
|
|||
Loading…
Reference in a new issue