From ebe6f9ea490b686cef393c9b31c2c975dfac0be8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 14 Oct 2005 15:55:51 +0000 Subject: r11058: remove useless talloc context metze (This used to be commit d9d3fe1b8aa34f5d87b73b94253b4230303cba76) --- source4/auth/credentials/credentials.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source4/auth') diff --git a/source4/auth/credentials/credentials.c b/source4/auth/credentials/credentials.c index 38c9ba30e8..f24c4e2231 100644 --- a/source4/auth/credentials/credentials.c +++ b/source4/auth/credentials/credentials.c @@ -533,17 +533,14 @@ void cli_credentials_set_anonymous(struct cli_credentials *cred) BOOL cli_credentials_is_anonymous(struct cli_credentials *cred) { - TALLOC_CTX *tmp_ctx = talloc_new(cred); const char *username = cli_credentials_get_username(cred); /* Yes, it is deliberate that we die if we have a NULL pointer * here - anonymous is "", not NULL, which is 'never specified, * never guessed', ie programmer bug */ if (!username[0]) { - talloc_free(tmp_ctx); return True; } - - talloc_free(tmp_ctx); + return False; } -- cgit