| 585 | } |
| 586 | |
| 587 | static int fixup_blacklist_name(void** param) |
| 588 | { |
| 589 | str *s = (str*)*param; |
| 590 | *param = get_bl_head_by_name(s); |
| 591 | if (!*param) { |
| 592 | LM_ERR("blacklist %.*s not configured\n", s->len, s->s); |
| 593 | return E_CFG; |
| 594 | } |
| 595 | return 0; |
| 596 | } |
| 597 | |
| 598 | static int fixup_blacklist(void** param) |
| 599 | { |
no test coverage detected