Replace number and total fields in cmdmon reply packet with padding

They were not used for anything and there is no plan to change that.
This commit is contained in:
Miroslav Lichvar
2014-01-21 19:10:46 +01:00
parent 2fc3525fdf
commit 3f507b782c
3 changed files with 7 additions and 8 deletions

View File

@@ -1738,9 +1738,9 @@ read_from_cmd_socket(void *anything)
tx_message.command = rx_message.command;
tx_message.sequence = rx_message.sequence;
tx_message.reply = htons(RPY_NULL);
tx_message.number = htons(1);
tx_message.total = htons(1);
tx_message.pad1 = 0;
tx_message.pad2 = 0;
tx_message.pad3 = 0;
tx_message.utoken = htonl(utoken);
/* Set this to a default (invalid) value. This protects against the
token field being set to an arbitrary value if we reject the