diff options
author | Amitay Isaacs <amitay@gmail.com> | 2018-06-27 13:41:38 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2018-07-02 08:51:20 +0200 |
commit | 79992dbb73ac9749ac987cb6a88964fa600b4c35 (patch) | |
tree | 7f0d4f7aa512e24278e4a40ba937d935b66a8c79 /ctdb/protocol | |
parent | 7eeba9c5a4541e581b062fb9ee26f13b7373c541 (diff) | |
download | samba-79992dbb73ac9749ac987cb6a88964fa600b4c35.tar.gz |
ctdb-common: Use sin6_len only if the structure supports it
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13493
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/protocol')
-rw-r--r-- | ctdb/protocol/protocol_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/protocol/protocol_util.c b/ctdb/protocol/protocol_util.c index 73652e7f060..c75555fa734 100644 --- a/ctdb/protocol/protocol_util.c +++ b/ctdb/protocol/protocol_util.c @@ -206,7 +206,7 @@ static int ipv6_from_string(const char *str, struct sockaddr_in6 *ip6) return EINVAL; } -#ifdef HAVE_SOCK_SIN_LEN +#ifdef HAVE_SOCK_SIN6_LEN ip6->sin6_len = sizeof(*ip6); #endif return 0; |