mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3-rpcclient: protect against empty witness async notify messages.
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
08e260e3e3
commit
6ef2d288a7
@ -406,6 +406,11 @@ static WERROR cmd_witness_AsyncNotify(struct rpc_pipe_client *cli,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (response == NULL) {
|
||||
d_printf("Got an empty response\n");
|
||||
goto done;
|
||||
}
|
||||
|
||||
switch(response->type) {
|
||||
case WITNESS_NOTIFY_RESOURCE_CHANGE:
|
||||
d_printf("Resource change");
|
||||
|
Loading…
Reference in New Issue
Block a user