Re: [libvirt] [PATCH 1/2] util: fix byte order of port in virSocketAddrResolveService

2019-09-17 Thread Daniel P . Berrangé
On Tue, Sep 17, 2019 at 05:03:56PM +1000, Michael Chapman wrote: > The ports in the socket address structures returned by getaddrinfo() are > in network byte order. Convert to host byte order before returning them. > > Signed-off-by: Michael Chapman > --- > src/util/virsocketaddr.c | 4 ++-- >

[libvirt] [PATCH 1/2] util: fix byte order of port in virSocketAddrResolveService

2019-09-17 Thread Michael Chapman
The ports in the socket address structures returned by getaddrinfo() are in network byte order. Convert to host byte order before returning them. Signed-off-by: Michael Chapman --- src/util/virsocketaddr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git