The first element of these structures is a 32-bit PNN. On 64-bit
systems this field can be followed by 32-bits of padding. When the
structures are copied this can cause uninitialised memory to be
copied.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
c.pnn = ctdb->pnn;
c.old_flags = node->flags;
c.pnn = ctdb->pnn;
c.old_flags = node->flags;
rd.pnn = ctdb->pnn;
rd.srvid = CTDB_SRVID_TAKEOVER_RUN_RESPONSE;
rd.pnn = ctdb->pnn;
rd.srvid = CTDB_SRVID_TAKEOVER_RUN_RESPONSE;
* wait for replies since a failure here might cause some
* noise in the logs but will not actually cause a problem.
*/
* wait for replies since a failure here might cause some
* noise in the logs but will not actually cause a problem.
*/
dtr.srvid = 0; /* No reply */
dtr.pnn = -1;
dtr.srvid = 0; /* No reply */
dtr.pnn = -1;
DEBUG(DEBUG_CRIT,("Trigger takeoverrun\n"));
DEBUG(DEBUG_CRIT,("Trigger takeoverrun\n"));
rd.pnn = ctdb->pnn;
rd.srvid = 0;
data.dptr = (uint8_t *)&rd;
rd.pnn = ctdb->pnn;
rd.srvid = 0;
data.dptr = (uint8_t *)&rd;