s3:libsmb: avoid calling cli_set_username() in clidfs
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Sep 2014 01:33:45 +0000 (03:33 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Oct 2014 10:57:07 +0000 (12:57 +0200)
Change-Id: I8b32be8a10d2bff33bb468cc68c98e555b220bde
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/libsmb/clidfs.c

index d8eb7e90a7b4626b061fe84e675e4f6b1a33f97c..e5c03a8549bb48131560187e8f63c95a70d39bda 100644 (file)
@@ -207,9 +207,6 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx,
                        return status;
                }
                d_printf("Anonymous login successful\n");
-               status = cli_set_username(c, "");
-       } else {
-               status = cli_set_username(c, username);
        }
 
        if (!NT_STATUS_IS_OK(status)) {