VOTE_Debug and VOTE_XDebug (udebug) both leave a single field
uninitialized if there is no current transaction. This leaks the memory
contents of the ubik server over the wire.
struct ubik_debug
- 4 bytes in member writeTrans
In common code to both RPCs, ensure that writeTrans is always
initialized.
[kaduk@mit.edu: switch to memset]
Change-Id: I91184b4ed0c159982a883ebaa9634406400eae93
/* fill in the basic debug structure. Note the the RPC protocol transfers,
* integers in host order. */
+ memset(aparm, 0, sizeof(*aparm));
aparm->now = FT_ApproxTime();
aparm->lastYesTime = vote_globals.ubik_lastYesTime;
aparm->lastYesHost = ntohl(vote_globals.lastYesHost);