mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
send on the right socket!
(This used to be ctdb commit 2a5253a9da4d0144f4e96d9b8f6ac636849d146a)
This commit is contained in:
parent
d41290fbae
commit
eae66741ec
@ -68,9 +68,9 @@ static void ctdb_control_send_arp(struct event_context *ev, struct timed_event *
|
||||
|
||||
for (tcp=arp->tcp_list;tcp;tcp=tcp->next) {
|
||||
DEBUG(0,("sending tcp tickle ack for %u->%s:%u\n",
|
||||
(unsigned)tcp->daddr.sin_port,
|
||||
(unsigned)ntohs(tcp->daddr.sin_port),
|
||||
inet_ntoa(tcp->saddr.sin_addr),
|
||||
(unsigned)tcp->saddr.sin_port));
|
||||
(unsigned)ntohs(tcp->saddr.sin_port)));
|
||||
ret = ctdb_sys_send_ack(&tcp->daddr, &tcp->saddr);
|
||||
if (ret != 0) {
|
||||
DEBUG(0,(__location__ " Failed to send tcp tickle ack for %s\n",
|
||||
|
@ -197,7 +197,7 @@ int ctdb_sys_send_ack(const struct sockaddr_in *dest,
|
||||
pkt.tcp.ack = 1;
|
||||
pkt.tcp.check = 0;
|
||||
|
||||
ret = sendto(3, &pkt, sizeof(pkt), 0, dest, sizeof(*dest));
|
||||
ret = sendto(s, &pkt, sizeof(pkt), 0, dest, sizeof(*dest));
|
||||
if (ret != 0) {
|
||||
DEBUG(0,(__location__ " failed sendto (%s)\n", strerror(errno)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user