r9746: Add "staff" as possible alternative to wheel
[kai/samba.git] / source / lib / samba3 / samba3dump.c
index b95fc0d4b204d7e372fe509539661dfb55845530..6be91c0db2bd3949ec434306788a13947b9526ab 100644 (file)
@@ -86,8 +86,11 @@ static NTSTATUS print_samba3_secrets(struct samba3_secrets *secrets)
        print_header("Secrets");
 
        printf("IPC Credentials:\n");
-       if (secrets->ipc_cred->username_obtained) 
-               printf("        User: %s\n", cli_credentials_get_username(secrets->ipc_cred));
+       if (secrets->ipc_cred->username_obtained) {
+               TALLOC_CTX *mem_ctx = talloc_new(NULL);
+               printf("        User: %s\n", cli_credentials_get_username(secrets->ipc_cred, mem_ctx));
+               talloc_free(mem_ctx);
+       }
        if (secrets->ipc_cred->password_obtained)
                printf("        Password: %s\n", cli_credentials_get_password(secrets->ipc_cred));