mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
system_linux: correctly cast sockaddr_in6 to sockaddr for sendto() in ctdb_sys_send_tcp()
(This used to be ctdb commit 11bebd5367102fcd02b17c44ac87bf50d4c68785)
This commit is contained in:
parent
d9516a8bf9
commit
5d94dff27e
@ -397,7 +397,9 @@ int ctdb_sys_send_tcp(const ctdb_sock_addr *dest,
|
||||
tmpport = tmpdest->ip6.sin6_port;
|
||||
|
||||
tmpdest->ip6.sin6_port = 0;
|
||||
ret = sendto(s, &ip6pkt, sizeof(ip6pkt), 0, &dest->ip6, sizeof(dest->ip6));
|
||||
ret = sendto(s, &ip6pkt, sizeof(ip6pkt), 0,
|
||||
(const struct sockaddr *)&dest->ip6,
|
||||
sizeof(dest->ip6));
|
||||
tmpdest->ip6.sin6_port = tmpport;
|
||||
close(s);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user