Fix coverity uninitialized variable "requestId" by zeroing it
in HgfsServerGetRequest before passing to the request packet
HgfsUnpackPacketParams extraction function which will use it
in a log message.
Also moved an assert useful for testing protocol changes which was
incorrect in its placement.
HgfsSessionInfo *session = NULL;
uint64 sessionId = HGFS_INVALID_SESSION_ID;
Bool sessionEnabled = FALSE;
- uint32 requestId;
+ uint32 requestId = 0;
HgfsOp opcode;
const void *request;
size_t requestSize;
}
HGFS_ASSERT_MINIMUM_OP(input->op);
+ HGFS_ASSERT_CLIENT(input->op);
+
if (HGFS_ERROR_SUCCESS == status) {
HGFS_ASSERT_INPUT(input);
if ((input->op < ARRAYSIZE(handlers)) &&
__LINE__));
}
}
- HGFS_ASSERT_CLIENT(input->op);
/* Send error if we fail to process the op. */
if (HGFS_ERROR_SUCCESS != status) {