Skip to content

Commit

Permalink
More misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jun 24, 2013
1 parent dc8b68d commit 0144763
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modules/rlm_ldap/clients.c
Expand Up @@ -198,7 +198,13 @@ int rlm_ldap_load_clients(ldap_instance_t const *inst)
}

/* FIXME: We should really pass a proper ctx */
c = client_from_query(NULL, identifier[0], shortname[0], secret[0], type[0], server[0], require_ma[0]);
c = client_from_query(NULL,
identifier[0],
shortname ? shortname[0] : NULL,
secret[0],
type ? type[0] : NULL,
server ? server[0] : NULL,
require_ma ? strncmp(require_ma[0], "true", 4) == 0 : false);
if (!c) {
goto next;
}
Expand Down

0 comments on commit 0144763

Please sign in to comment.