svn commit: samba r11058 - in
branches/SAMBA_4_0/source/auth/credentials: .
metze at samba.org
metze at samba.org
Fri Oct 14 15:55:51 GMT 2005
Author: metze
Date: 2005-10-14 15:55:51 +0000 (Fri, 14 Oct 2005)
New Revision: 11058
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11058
Log:
remove useless talloc context
metze
Modified:
branches/SAMBA_4_0/source/auth/credentials/credentials.c
Changeset:
Modified: branches/SAMBA_4_0/source/auth/credentials/credentials.c
===================================================================
--- branches/SAMBA_4_0/source/auth/credentials/credentials.c 2005-10-14 15:50:38 UTC (rev 11057)
+++ branches/SAMBA_4_0/source/auth/credentials/credentials.c 2005-10-14 15:55:51 UTC (rev 11058)
@@ -533,17 +533,14 @@
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;
}
More information about the samba-cvs
mailing list