diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-10-14 15:55:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:44:43 -0500 |
commit | ebe6f9ea490b686cef393c9b31c2c975dfac0be8 (patch) | |
tree | ca2c8f4ed55f0182f21645a39b3984c6ab688737 /source4/auth | |
parent | 152aa5bd339061d700422d231142179262c2dbeb (diff) | |
download | samba-ebe6f9ea490b686cef393c9b31c2c975dfac0be8.tar.gz samba-ebe6f9ea490b686cef393c9b31c2c975dfac0be8.tar.bz2 samba-ebe6f9ea490b686cef393c9b31c2c975dfac0be8.zip |
r11058: remove useless talloc context
metze
(This used to be commit d9d3fe1b8aa34f5d87b73b94253b4230303cba76)
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/credentials/credentials.c | 5 |
1 files changed, 1 insertions, 4 deletions
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; } |