1
0
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:
Martin Schwenke 2017-09-19 14:54:26 +10:00 committed by Martin Schwenke
parent 3783b66fb3
commit 3816270c76
5 changed files with 15 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;