summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-27 21:56:51 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-27 22:56:44 +1000
commit1cd4f50079290e20bbe6be21d71ea654b6afb032 (patch)
tree52160ac117b3f42bb4b8e4967517a6aec0185f40
parentd94c94fcb94ae0dfd221b5c807ec310f9c0fd8ed (diff)
downloadsamba-1cd4f50079290e20bbe6be21d71ea654b6afb032.tar.gz
samba-1cd4f50079290e20bbe6be21d71ea654b6afb032.tar.bz2
samba-1cd4f50079290e20bbe6be21d71ea654b6afb032.zip
s4-torture: not all platforms have defines like AF_AX25
all we need are invalid values here, so just use fixd high values.
-rw-r--r--source4/torture/rpc/netlogon.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index 9b8f9b7800..1fc902b59e 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -2479,11 +2479,11 @@ static bool test_netr_DsRAddressToSitenamesW(struct torture_context *tctx,
addrs[2].buffer[0] = AF_UNIX;
addrs[3].size = 10;
- addrs[3].buffer[0] = AF_FILE;
+ addrs[3].buffer[0] = 250;
addrs[4].size = 10;
- addrs[4].buffer[0] = AF_AX25;
+ addrs[4].buffer[0] = 251;
addrs[5].size = 10;
- addrs[5].buffer[0] = AF_IPX;
+ addrs[5].buffer[0] = 252;
status = dcerpc_netr_DsRAddressToSitenamesW_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "failed");
@@ -2632,11 +2632,11 @@ static bool test_netr_DsRAddressToSitenamesExW(struct torture_context *tctx,
addrs[2].buffer[0] = AF_UNIX;
addrs[3].size = 10;
- addrs[3].buffer[0] = AF_FILE;
+ addrs[3].buffer[0] = 250;
addrs[4].size = 10;
- addrs[4].buffer[0] = AF_AX25;
+ addrs[4].buffer[0] = 251;
addrs[5].size = 10;
- addrs[5].buffer[0] = AF_IPX;
+ addrs[5].buffer[0] = 252;
status = dcerpc_netr_DsRAddressToSitenamesExW_r(b, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "failed");