diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-11-27 03:25:31 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-11-27 03:25:31 +0000 |
commit | 1421f2fbcb296a894cb4e7548e0275e35e055b98 (patch) | |
tree | c4f2e4506b332d2a217f7e0040396046679c3cbd /source/auth | |
parent | 00e4f0c803c6376387c31efd01cf3437c589da9d (diff) | |
download | samba-1421f2fbcb296a894cb4e7548e0275e35e055b98.tar.gz samba-1421f2fbcb296a894cb4e7548e0275e35e055b98.tar.xz samba-1421f2fbcb296a894cb4e7548e0275e35e055b98.zip |
fix sense of lp_allow_trusted_domains()
fix a memory leak
Diffstat (limited to 'source/auth')
-rw-r--r-- | source/auth/auth.c | 2 | ||||
-rw-r--r-- | source/auth/auth_domain.c | 2 | ||||
-rw-r--r-- | source/auth/auth_info.c | 9 |
3 files changed, 2 insertions, 11 deletions
diff --git a/source/auth/auth.c b/source/auth/auth.c index e22c52702c9..a32d607e97e 100644 --- a/source/auth/auth.c +++ b/source/auth/auth.c @@ -36,7 +36,7 @@ static BOOL check_domain_match(char *user, char *domain) */ if (!lp_allow_trusted_domains() && - (strequal("", domain) || strequal(lp_workgroup(), domain) || is_netbios_alias_or_name(domain))) { + !(strequal("", domain) || strequal(lp_workgroup(), domain) || is_netbios_alias_or_name(domain))) { DEBUG(1, ("check_domain_match: Attempt to connect as user %s from domain %s denied.\n", user, domain)); return False; } else { diff --git a/source/auth/auth_domain.c b/source/auth/auth_domain.c index a41e43bd829..a779a7e9c0d 100644 --- a/source/auth/auth_domain.c +++ b/source/auth/auth_domain.c @@ -38,7 +38,7 @@ static BOOL connect_to_domain_password_server(struct cli_state *pcli, fstring remote_machine; NTSTATUS result; - if(cli_initialise(pcli) == NULL) { + if (cli_initialise(pcli) == NULL) { DEBUG(0,("connect_to_domain_password_server: unable to initialize client connection.\n")); return False; } diff --git a/source/auth/auth_info.c b/source/auth/auth_info.c index 99648aba8d2..4b372c16321 100644 --- a/source/auth/auth_info.c +++ b/source/auth/auth_info.c @@ -92,15 +92,6 @@ static BOOL make_auth_info_text_list(auth_authsupplied_info **auth_info, char ** if (strequal(builtin_auth_init_functions[i].name, *text_list)) { DEBUG(5,("Found auth method %s (at pos %d)\n", *text_list, i)); - /* Malloc entry, fill it, link it */ - t = (auth_methods *)malloc(sizeof(*t)); - if (!t) { - DEBUG(0,("make_pw_chat: malloc failed!\n")); - return False; - } - - ZERO_STRUCTP(t); - if (builtin_auth_init_functions[i].init(&t)) { DEBUG(5,("auth method %s has a valid init\n", *text_list)); t->name = builtin_auth_init_functions[i].name; |