s3/lib: clang: Fix 'Acces to field results in a deref of a null pointer'
commit1d651a8d5847c1ecd87d5f1bbfc7714e078d60f2
authorNoel Power <noel.power@suse.com>
Tue, 9 Jul 2019 16:02:47 +0000 (9 16:02 +0000)
committerGary Lockyer <gary@samba.org>
Wed, 24 Jul 2019 21:33:21 +0000 (24 21:33 +0000)
tree229345aac93d49e45396cd7aa30317e6c1921955
parentbe2b69fecebd35d7a60057d6515e4401d3ce1294
s3/lib: clang: Fix 'Acces to field results in a deref of a null pointer'

Fixes:

source3/lib/ctdbd_conn.c:415:6: warning: Access to field 'operation' results in a dereference of a null pointer (loaded from variable 'hdr') <--[clang]
        if (hdr->operation == CTDB_REQ_MESSAGE) {

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