mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3/lib: Fix Access to field results in dereference of NULL pointer
Fixes: ource3/lib/messages_dgm.c:176:29: warning: Access to field 'queue' results in a dereference of a null pointer (loaded from variable 'out') <--[clang] qlen = tevent_queue_length(out->queue); Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
17ce70d6d9
commit
96e00a5258
@ -323,6 +323,13 @@ static int messaging_dgm_out_get(struct messaging_dgm_context *ctx, pid_t pid,
|
||||
}
|
||||
|
||||
messaging_dgm_out_rearm_idle_timer(out);
|
||||
/*
|
||||
* shouldn't be possible, should be set if messaging_dgm_out_create
|
||||
* succeeded. This check is to satisfy static checker
|
||||
*/
|
||||
if (out == NULL) {
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
*pout = out;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user