mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3/lib: clang: Fix 'access to field results in a deref of a null pointer'
Fixes: source3/lib/ctdbd_conn.c:1953:6: warning: Access to field 'operation' results in a dereference of a null pointer (loaded from variable 'hdr') <--[clang] if (hdr->operation != CTDB_REPLY_CALL) { ^~~ Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Autobuild-User(master): Gary Lockyer <gary@samba.org> Autobuild-Date(master): Wed Jul 24 22:50:27 UTC 2019 on sn-devel-184
This commit is contained in:
parent
81f8cbfba3
commit
3913b9a408
@ -1946,7 +1946,7 @@ static void ctdbd_parse_done(struct tevent_req *subreq)
|
||||
|
||||
ret = ctdb_pkt_recv_recv(subreq, state, &hdr);
|
||||
TALLOC_FREE(subreq);
|
||||
if (tevent_req_error(req, ret)) {
|
||||
if ((hdr == NULL) || tevent_req_error(req, ret)) {
|
||||
DBG_ERR("ctdb_pkt_recv_recv returned %s\n", strerror(ret));
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user