Skip to content

Commit

Permalink
Get the listen section from the parent module
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 14, 2024
1 parent 4af40d7 commit 739c9ef
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/listen/bfd/proto_bfd_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
}
}

ci = cf_parent(inst->cs); /* listen { ... } */
ci = cf_section_to_item(mctx->mi->parent->conf); /* listen { ... } */
fr_assert(ci != NULL);
ci = cf_parent(ci);
fr_assert(ci != NULL);
Expand Down
2 changes: 1 addition & 1 deletion src/listen/dhcpv4/proto_dhcpv4_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
}
}

ci = cf_parent(inst->cs); /* listen { ... } */
ci = cf_section_to_item(mctx->mi->parent->conf); /* listen { ... } */
fr_assert(ci != NULL);
ci = cf_parent(ci);
fr_assert(ci != NULL);
Expand Down
2 changes: 1 addition & 1 deletion src/listen/dhcpv6/proto_dhcpv6_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
}
}

ci = cf_parent(inst->cs); /* listen { ... } */
ci = cf_section_to_item(mctx->mi->parent->conf); /* listen { ... } */
fr_assert(ci != NULL);
ci = cf_parent(ci);
fr_assert(ci != NULL);
Expand Down
2 changes: 1 addition & 1 deletion src/listen/radius/proto_radius_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
}
}

ci = cf_parent(inst->cs); /* listen { ... } */
ci = cf_section_to_item(mctx->mi->parent->conf); /* listen { ... } */
fr_assert(ci != NULL);
ci = cf_parent(ci);
fr_assert(ci != NULL);
Expand Down
4 changes: 2 additions & 2 deletions src/listen/tacacs/proto_tacacs_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ typedef struct {
bool recv_buff_is_set; //!< Whether we were provided with a recv_buff
bool dynamic_clients; //!< whether we have dynamic clients

fr_client_list_t *clients; //!< local clients
fr_client_list_t *clients; //!< local clients

fr_trie_t *trie; //!< for parsed networks
fr_ipaddr_t *allow; //!< allowed networks for dynamic clients
Expand Down Expand Up @@ -459,7 +459,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
}
}

ci = cf_parent(inst->cs); /* listen { ... } */
ci = cf_section_to_item(mctx->mi->parent->conf); /* listen { ... } */
fr_assert(ci != NULL);
ci = cf_parent(ci);
fr_assert(ci != NULL);
Expand Down
2 changes: 1 addition & 1 deletion src/listen/vmps/proto_vmps_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ static int mod_instantiate(module_inst_ctx_t const *mctx)
}
}

ci = cf_parent(inst->cs); /* listen { ... } */
ci = cf_section_to_item(mctx->mi->parent->conf); /* listen { ... } */
fr_assert(ci != NULL);
ci = cf_parent(ci);
fr_assert(ci != NULL);
Expand Down

0 comments on commit 739c9ef

Please sign in to comment.