Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getpeername() and getsockname() will truncate the result if it is larger than the passed-in length. Because here always the size of the `sa` IPv4 union member was passed in, all larger (aka IPv6) results were truncated. Instead use the size of the `addr` union, which is the maximum size of all union members. The bug was introduced in 0b6450c. Trac: #1358 Signed-off-by: corubba <[email protected]> Acked-by: Gert Doering <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg30035.html Signed-off-by: Gert Doering <[email protected]>
- Loading branch information