summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2015-09-14 17:12:58 +0200
committerMichael Adam <obnox@samba.org>2015-09-29 11:59:20 +0200
commit6ef2d288a7327f356ab4694eca9b554796066257 (patch)
tree3203ea78b69662a877d8df8c1c8b2a2e9740db8a /source3/rpcclient
parent08e260e3e3e6b0c1266fcd5285e666d089e4e9e0 (diff)
downloadsamba-6ef2d288a7327f356ab4694eca9b554796066257.tar.gz
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>
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_witness.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_witness.c b/source3/rpcclient/cmd_witness.c
index bd0372f592b..5d07dde812c 100644
--- a/source3/rpcclient/cmd_witness.c
+++ b/source3/rpcclient/cmd_witness.c
@@ -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");