s4:torture/samba3rpc: fix the build after get_myname() changes
authorStefan Metzmacher <metze@samba.org>
Fri, 13 Feb 2009 12:35:19 +0000 (13:35 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 13 Feb 2009 12:36:11 +0000 (13:36 +0100)
metze

source4/torture/rpc/samba3rpc.c

index 5f803b07d39cd007cd37d51352411f352f89351d..9cb36fc6cc4231b79d4df64f2fbe4370c80b1606 100644 (file)
@@ -1249,7 +1249,7 @@ bool torture_netlogon_samba3(struct torture_context *torture)
 
        wks_name = torture_setting_string(torture, "wksname", NULL);
        if (wks_name == NULL) {
-               wks_name = get_myname();
+               wks_name = get_myname(torture);
        }
 
        mem_ctx = talloc_init("torture_netlogon_samba3");
@@ -1426,7 +1426,7 @@ bool torture_samba3_sessionkey(struct torture_context *torture)
        struct cli_credentials *anon_creds;
        const char *wks_name;
 
-       wks_name = torture_setting_string(torture, "wksname", get_myname());
+       wks_name = torture_setting_string(torture, "wksname", get_myname(torture));
 
        if (!(anon_creds = cli_credentials_init_anon(torture))) {
                d_printf("create_anon_creds failed\n");
@@ -3024,7 +3024,7 @@ static NTSTATUS enumvalues(struct dcerpc_pipe *p, struct policy_handle *handle,
 
        while (1) {
                struct winreg_EnumValue r;
-               struct winreg_StringBuf name;
+               struct winreg_ValNameBuf name;
                enum winreg_Type type = 0;
                uint8_t buf8[1024];
                NTSTATUS status;