mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
ctdb-client: Fix CID 1419820
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Mon Oct 23 19:45:08 CEST 2017 on sn-devel-144
This commit is contained in:
parent
adde930795
commit
65442e1714
@ -155,7 +155,7 @@ static void ctdb_tunnel_handler(uint64_t tunnel_id, TDB_DATA data,
|
||||
return;
|
||||
}
|
||||
|
||||
if (data.dsize != sizeof(tunnel_data)) {
|
||||
if (data.dsize != sizeof(struct ctdb_tunnel_data)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -362,7 +362,7 @@ void ctdb_client_req_tunnel(struct ctdb_client_context *client,
|
||||
} else if (tunnel->flags & CTDB_TUNNEL_FLAG_REQUEST) {
|
||||
|
||||
TDB_DATA data = {
|
||||
.dsize = sizeof(&tunnel_data),
|
||||
.dsize = sizeof(struct ctdb_tunnel_data),
|
||||
.dptr = (uint8_t *)&tunnel_data,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user