]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Adding null check for results passed to log function.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:03 +0000 (12:11 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 11 Sep 2020 19:11:03 +0000 (12:11 -0700)
commit652aeafa2cee7893b66f73f3096077232e6dce93
tree8e8d0528f7cfb892232190b8944d68c571ff7740
parent31e14a2def83c8cf4450543c042c61a5e811eada
Adding null check for results passed to log function.

In several files, replies/results from RPC functions can possibly be
null if the function fails.  This changeset adds a function-like macro
which does the null checks and is applied to the replies when passed
into logging functions.
open-vm-tools/lib/include/vmware/tools/log.h
open-vm-tools/services/plugins/guestInfo/guestInfoServer.c
open-vm-tools/services/plugins/vmbackup/stateMachine.c
open-vm-tools/services/vmtoolsd/toolsRpc.c
open-vm-tools/toolbox/toolboxcmd-info.c
open-vm-tools/toolbox/toolboxcmd-shrink.c
open-vm-tools/toolbox/toolboxcmd-time.c