diff options
author | Aravinda VK <avishwan@redhat.com> | 2019-09-16 10:04:26 +0530 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2020-03-16 08:11:11 +0000 |
commit | f3b85b01e4b61a52598a6789c61997c5dad65bf0 (patch) | |
tree | fe8a79b693ec5b46fd8e152894b5089d00e94fd2 /libglusterfs/src/cluster-syncop.c | |
parent | 36e26424f5eabe1332a49c4ffaa3214d38675e29 (diff) |
eventsapi: Set IPv4/IPv6 family based on input IP
server.sin_family was set to AF_INET while creating socket connection,
this was failing if the input address is IPv6(`::1`).
With this patch, sin_family is set by reading the ai_family of
`getaddrinfo` result.
Backport of:
> Fixes: bz#1752330
> Change-Id: I499f957b432842fa989c698f6e5b25b7016084eb
> Signed-off-by: Aravinda VK <avishwan@redhat.com>
Fixes: bz#1807785
Change-Id: I499f957b432842fa989c698f6e5b25b7016084eb
Signed-off-by: Aravinda VK <avishwan@redhat.com>
Diffstat (limited to 'libglusterfs/src/cluster-syncop.c')
0 files changed, 0 insertions, 0 deletions