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:
parent
5e52f73f75
commit
e99150c872
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user