diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2020-01-14 13:28:47 +0100 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2020-03-17 06:02:42 +0000 |
commit | d17860ab2fb06984a0e7bf1740326c4b0f398c5c (patch) | |
tree | 8361bf2325df7d83f78aab322aec34b343fb1e24 /xlators/mgmt/glusterd/src/glusterd-snapd-svc-helper.h | |
parent | 933b46b4a3538794b3a29c8f7b6472b58998be6a (diff) |
events: fix IPv6 memory corruption
When an event was generated and the target host was resolved to an IPv6
address, there was a memory overflow when that address was copied to a
fixed IPv4 structure (IPv6 addresses are longer than IPv4 ones).
This fix correctly handles IPv4 and IPv6 addresses returned by
getaddrinfo()
Backport of:
> Change-Id: I5864a0c6e6f1b405bd85988529570140cf23b250
> Fixes: bz#1790870
> Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Change-Id: I5864a0c6e6f1b405bd85988529570140cf23b250
Fixes: #1030
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-snapd-svc-helper.h')
0 files changed, 0 insertions, 0 deletions