forked from altcloud/fence-virt
fence-virt: Fix mismatched sizeof in memset call
Fix incorrect argument to sizeof used in a memset call. Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
This commit is contained in:
parent
10f574f860
commit
b995766a04
@ -144,7 +144,7 @@ connect_tcp(fence_req_t *req, fence_auth_type_t auth,
|
||||
}
|
||||
break;
|
||||
case PF_INET6:
|
||||
memset(&sin6, 0, sizeof(sin));
|
||||
memset(&sin6, 0, sizeof(sin6));
|
||||
memcpy(&sin6.sin6_addr, req->address,
|
||||
sizeof(sin6.sin6_addr));
|
||||
sin.sin_family = PF_INET6;
|
||||
|
Loading…
Reference in New Issue
Block a user