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:
Ryan McCabe 2014-06-23 15:47:17 -04:00
parent 10f574f860
commit b995766a04

View File

@ -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;