Check bug 816476 for more details. In changeset #
1611812, we have
removed the special logic related to the default session. So, in case of
any error, HgfsParseRequest() doesn't guarantee that all the attributes of
HgfsInputParam datastructure will be filled. In case of an error, the
code should not execute HGFS_ASSERT_INPUT.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
size_t replyPacketSize;
size_t replySize;
- HGFS_ASSERT_INPUT(input);
+ if (HGFS_ERROR_SUCCESS == status) {
+ HGFS_ASSERT_INPUT(input);
+ } else {
+ ASSERT(input);
+ }
if (input->v4header) {
HgfsHeader *header;
localInput->id = request->id;
}
ASSERT_DEVEL(0);
- return HGFS_ERROR_PROTOCOL;
+ return FALSE;
}
if (request->op < HGFS_OP_OPEN_V3) {