HomeFreeBSD

Add a somewhat redundant check on the len arguement to getsockaddr() to
rS124335Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Add a somewhat redundant check on the len arguement to getsockaddr() to
avoid relying on the minimum memory allocation size to avoid problems.
The check is somewhat redundant because the consumers of the returned
structure will check that sa_len is a protocol-specific larger size.

Submitted by: Matthew Dillon <dillon@apollo.backplane.com>
Reviewed by: nectar
MFC after: 30 days

Details

Provenance
truckmanAuthored on
Parents
rS124334: MFC: Fix a problem that occurs when truncating files on NFSv3 mounts: we
Branches
Unknown
Tags
Unknown

Event Timeline