core: fix sockaddr length calculation for sockaddr_pretty() (#4966)
authorLennart Poettering <lennart@poettering.net>
Thu, 29 Dec 2016 10:21:37 +0000 (11:21 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 29 Dec 2016 10:21:37 +0000 (11:21 +0100)
commit41733ae1e0035c538505bc5be1ca5d67a80b4a82
treea350744ec31d2b63fe6860b110a419c78d995a5e
parent56a9366d7d80a8bbb0d3c1c7009c86ce3af0b18a
core: fix sockaddr length calculation for sockaddr_pretty() (#4966)

Let's simply store the socket address length in the SocketPeer object so
that we can use it when invoking sockaddr_pretty():

This fixes the issue described in #4943, but avoids calling
getpeername() twice.
src/core/socket.c