summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/samr.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc/samr.c')
-rw-r--r--source4/torture/rpc/samr.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index f7006241b5..45a0c4f02d 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -26,18 +26,9 @@
static BOOL test_QueryUserInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct policy_handle *handle);
-/*
- this makes the debug code display the right thing
-*/
static void init_samr_Name(struct samr_Name *name, const char *s)
{
- name->name_len = strlen_m(s)*2;
- name->name_size = name->name_len;
- if (name->name_len == 0) {
- name->name = NULL;
- } else {
- name->name = s;
- }
+ name->name = s;
}
static BOOL test_Close(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,