*/
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 {
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;
}
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;