]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix a segfault in RpcChannel_SendOutRaw.
authorVMware, Inc <>
Wed, 18 Sep 2013 03:21:26 +0000 (20:21 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:06:57 +0000 (22:06 -0700)
Fix a segfault due to null pointer reference in debug code.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/rpcChannel/rpcChannel.c

index 9ae9393ae09ab04e61a94dd00acaf16b06a9f88c..d22e5c8a3664ccfc13b550b68c03c020ac44c002 100644 (file)
@@ -891,7 +891,7 @@ RpcChannel_SendOneRaw(const char *data,
 
 sent:
    g_debug(LGPFX "Request %s: reqlen=%"FMTSZ"u, replyLen=%"FMTSZ"u\n",
-           status ? "OK" : "FAILED", dataLen, *resultLen);
+           status ? "OK" : "FAILED", dataLen, resultLen ? *resultLen : 0);
    if (chan) {
       RpcChannel_Stop(chan);
       RpcChannel_Destroy(chan);