mirror of
https://github.com/samba-team/samba.git
synced 2025-11-26 04:23:49 +03:00
r26402: Require a talloc context in libnetif.
This commit is contained in:
committed by
Stefan Metzmacher
parent
9f975417cc
commit
a35e51871b
@@ -42,7 +42,7 @@ static bool test_udp(struct torture_context *tctx)
|
||||
TALLOC_CTX *mem_ctx = tctx;
|
||||
struct interface *ifaces;
|
||||
|
||||
load_interfaces(lp_interfaces(tctx->lp_ctx), &ifaces);
|
||||
load_interfaces(tctx, lp_interfaces(tctx->lp_ctx), &ifaces);
|
||||
|
||||
status = socket_create("ip", SOCKET_TYPE_DGRAM, &sock1, 0);
|
||||
torture_assert_ntstatus_ok(tctx, status, "creating DGRAM IP socket 1");
|
||||
@@ -135,7 +135,7 @@ static bool test_tcp(struct torture_context *tctx)
|
||||
torture_assert_ntstatus_ok(tctx, status, "creating IP stream socket 1");
|
||||
talloc_steal(mem_ctx, sock2);
|
||||
|
||||
load_interfaces(lp_interfaces(tctx->lp_ctx), &ifaces);
|
||||
load_interfaces(tctx, lp_interfaces(tctx->lp_ctx), &ifaces);
|
||||
localhost = socket_address_from_strings(sock1, sock1->backend_name,
|
||||
iface_best_ip(ifaces, "127.0.0.1"), 0);
|
||||
torture_assert(tctx, localhost, "Localhost not found");
|
||||
|
||||
Reference in New Issue
Block a user