mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
system_linux: correctly cast sockaddr_in to sockaddr in ctdb_sys_send_tcp()
(This used to be ctdb commit cc60df5a3edebfdf50fcd22ebfaad35736f90379)
This commit is contained in:
parent
e931453a22
commit
d9516a8bf9
@ -353,7 +353,9 @@ int ctdb_sys_send_tcp(const ctdb_sock_addr *dest,
|
||||
set_nonblocking(s);
|
||||
set_close_on_exec(s);
|
||||
|
||||
ret = sendto(s, &ip4pkt, sizeof(ip4pkt), 0, &dest->ip, sizeof(dest->ip));
|
||||
ret = sendto(s, &ip4pkt, sizeof(ip4pkt), 0,
|
||||
(const struct sockaddr *)&dest->ip,
|
||||
sizeof(dest->ip));
|
||||
close(s);
|
||||
if (ret != sizeof(ip4pkt)) {
|
||||
DEBUG(DEBUG_CRIT,(__location__ " failed sendto (%s)\n", strerror(errno)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user