diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-18 12:12:14 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-18 12:12:14 +0100 |
commit | c74fe5726259c508a541eb5b97ca1def7733a5c9 (patch) | |
tree | efb57677b7ccd014fbcfd8e2f08c3f654adc02c9 /src/heap.c | |
parent | d4ef2cfa625d4a9011d61dcc7537963906ff3105 (diff) |
transparent: workaround old glibc bug on RHEL7
it's been reported[0] that RHEL7 fails to properly set the length
parameter of the getsockname() call to the length of the required
struct sockaddr type, and always returns the length passed if it
is big enough.
the SOCKADDR_UNION_* macros originate from my microsocks[1] project,
and facilitate handling of the sockaddr mess without nasty casts.
[0]: https://github.com/tinyproxy/tinyproxy/issues/45#issuecomment-694594990
[1]: https://github.com/rofl0r/microsocks
Diffstat (limited to 'src/heap.c')
0 files changed, 0 insertions, 0 deletions