Skip to content

Commit

Permalink
use names from dictionary attributes instead of hard-coded names
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jul 10, 2020
1 parent a1651f2 commit eba3dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/rlm_sqlippool/rlm_sqlippool.c
Expand Up @@ -494,13 +494,13 @@ static rlm_rcode_t CC_HINT(nonnull) mod_post_auth(module_ctx_t const *mctx, REQU
* If there is a Framed-IP-Address attribute in the reply do nothing
*/
if (fr_pair_find_by_da(request->reply->vps, inst->framed_ip_address, TAG_ANY) != NULL) {
RDEBUG2("Framed-IP-Address already exists");
RDEBUG2("%s already exists", inst->framed_ip_address->name);

return do_logging(inst, request, inst->log_exists, RLM_MODULE_NOOP);
}

if (fr_pair_find_by_da(request->control, attr_pool_name, TAG_ANY) == NULL) {
RDEBUG2("No Pool-Name defined");
RDEBUG2("No %s defined", attr_pool_name->name);

return do_logging(inst, request, inst->log_nopool, RLM_MODULE_NOOP);
}
Expand Down

0 comments on commit eba3dd1

Please sign in to comment.