mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdb-common: Initialise socket addresses before reading into them
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
3783b66fb3
commit
3816270c76
@ -291,6 +291,9 @@ int ctdb_sys_read_tcp_packet(int s, void *private_data,
|
||||
return -1;
|
||||
}
|
||||
|
||||
ZERO_STRUCTP(src);
|
||||
ZERO_STRUCTP(dst);
|
||||
|
||||
/* Ethernet */
|
||||
eth = (struct ether_header *)buffer;
|
||||
|
||||
|
@ -298,6 +298,9 @@ int ctdb_sys_read_tcp_packet(int s, void *private_data,
|
||||
return -1;
|
||||
}
|
||||
|
||||
ZERO_STRUCTP(src);
|
||||
ZERO_STRUCTP(dst);
|
||||
|
||||
/* Ethernet */
|
||||
eth = (struct ether_header *)pkt;
|
||||
|
||||
|
@ -293,6 +293,9 @@ int ctdb_sys_read_tcp_packet(int s, void *private_data,
|
||||
return -1;
|
||||
}
|
||||
|
||||
ZERO_STRUCTP(src);
|
||||
ZERO_STRUCTP(dst);
|
||||
|
||||
/* Ethernet */
|
||||
eth = (struct ether_header *)pkt;
|
||||
|
||||
|
@ -293,6 +293,9 @@ int ctdb_sys_read_tcp_packet(int s, void *private_data,
|
||||
return -1;
|
||||
}
|
||||
|
||||
ZERO_STRUCTP(src);
|
||||
ZERO_STRUCTP(dst);
|
||||
|
||||
/* Ethernet */
|
||||
eth = (struct ether_header *)pkt;
|
||||
|
||||
|
@ -518,6 +518,9 @@ int ctdb_sys_read_tcp_packet(int s, void *private_data,
|
||||
return -1;
|
||||
}
|
||||
|
||||
ZERO_STRUCTP(src);
|
||||
ZERO_STRUCTP(dst);
|
||||
|
||||
/* Ethernet */
|
||||
eth = (struct ether_header *)pkt;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user