1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4-torture: fix invalid dereference of binding handle in mgmt test.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Günther Deschner 2015-04-21 12:07:08 +02:00 committed by Michael Adam
parent 5e52f73f75
commit e99150c872

View File

@ -287,13 +287,14 @@ bool torture_rpc_mgmt(struct torture_context *tctx)
talloc_free(loop_ctx);
continue;
}
bh = p->binding_handle;
if (!NT_STATUS_IS_OK(status)) {
talloc_free(loop_ctx);
torture_comment(tctx, "Interface not available (%s) - skipping\n", nt_errstr(status));
ret = false;
continue;
}
bh = p->binding_handle;
if (!test_is_server_listening(tctx, bh, loop_ctx)) {
ret = false;