]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
HgfsServer: Fix coverity issue - uninitialized variable "requestId"
authorOliver Kurth <okurth@vmware.com>
Mon, 17 Jun 2019 18:41:37 +0000 (11:41 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 17 Jun 2019 18:41:37 +0000 (11:41 -0700)
commit9e1d3be7c075e8ca4c7ff07b8dadeab8a14953b3
tree47a6f5b628c0e646ea11dc0bac17fd205cf6267d
parentd2213fb32a1357305e72cbd6856f5e5ea9e151da
HgfsServer: Fix coverity issue - uninitialized variable "requestId"

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.
open-vm-tools/lib/hgfsServer/hgfsServer.c