libcli/smb: clang: Fix 'Array access results in a null pointer deref'
commit3594c3ae202688fd8aae5f7f5e20464cb23feea9
authorNoel Power <noel.power@suse.com>
Wed, 10 Jul 2019 10:37:34 +0000 (10 10:37 +0000)
committerGary Lockyer <gary@samba.org>
Tue, 16 Jul 2019 22:52:24 +0000 (16 22:52 +0000)
tree201db9e2989d3677a8d8a64a9e7f6b0f021cfce8
parent7a86c99ccb6912effdbb0ffbdc5c66eccf8c1aa2
libcli/smb: clang: Fix 'Array access results in a null pointer deref'

Fixes:

smbXcli_base.c:4393:10: warning: Array access (from variable 'inhdr') results in a null pointer dereference <--[clang]
        flags = CVAL(inhdr, HDR_FLG);

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
libcli/smb/smbXcli_base.c