diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/torture/libnet/userinfo.c | 11 | ||||
-rw-r--r-- | source4/torture/libnet/userman.c | 26 |
2 files changed, 4 insertions, 33 deletions
diff --git a/source4/torture/libnet/userinfo.c b/source4/torture/libnet/userinfo.c index fb54b6a184..bb8392952a 100644 --- a/source4/torture/libnet/userinfo.c +++ b/source4/torture/libnet/userinfo.c @@ -225,17 +225,8 @@ BOOL torture_userinfo(void) DCERPC_SAMR_UUID, DCERPC_SAMR_VERSION); - if (!NT_STATUS_IS_OK(status)) { - return False; - } + if (!NT_STATUS_IS_OK(status)) return False; - status = dcerpc_parse_binding(mem_ctx, binding, &b); - if (!NT_STATUS_IS_OK(status)) { - printf("failed to parse dcerpc binding '%s'\n", binding); - talloc_free(mem_ctx); - ret = False; - goto done; - } name.string = lp_workgroup(); if (!test_opendomain(p, mem_ctx, &h, &name, &sid)) { diff --git a/source4/torture/libnet/userman.c b/source4/torture/libnet/userman.c index 947d671ae0..c472f00e46 100644 --- a/source4/torture/libnet/userman.c +++ b/source4/torture/libnet/userman.c @@ -23,7 +23,7 @@ #include "librpc/gen_ndr/ndr_samr.h" #include "libnet/composite.h" -#define TEST_USERNAME "libnetuserinfotest" +#define TEST_USERNAME "libnetusermantest" static BOOL test_opendomain(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, @@ -235,17 +235,7 @@ BOOL torture_useradd(void) DCERPC_SAMR_UUID, DCERPC_SAMR_VERSION); - if (!NT_STATUS_IS_OK(status)) { - return False; - } - - status = dcerpc_parse_binding(mem_ctx, binding, &b); - if (!NT_STATUS_IS_OK(status)) { - printf("failed to parse dcerpc binding '%s'\n", binding); - talloc_free(mem_ctx); - ret = False; - goto done; - } + if (!NT_STATUS_IS_OK(status)) return False; domain_name.string = lp_workgroup(); if (!test_opendomain(p, mem_ctx, &h, &domain_name)) { @@ -290,17 +280,7 @@ BOOL torture_userdel(void) DCERPC_SAMR_UUID, DCERPC_SAMR_VERSION); - if (!NT_STATUS_IS_OK(status)) { - return False; - } - - status = dcerpc_parse_binding(mem_ctx, binding, &b); - if (!NT_STATUS_IS_OK(status)) { - printf("failed to parse dcerpc binding '%s'\n", binding); - talloc_free(mem_ctx); - ret = False; - goto done; - } + if (!NT_STATUS_IS_OK(status)) return False; domain_name.string = lp_workgroup(); if (!test_opendomain(p, mem_ctx, &h, &domain_name)) { |