Skip to content

Commit

Permalink
Pre-populate some additional fields in app_io
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 13, 2024
1 parent b6d713e commit e6ce797
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/listen/radius/proto_radius.c
Expand Up @@ -97,6 +97,8 @@ static int transport_parse(TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *

mi = talloc_get_type_abort(*(void **)out, module_instance_t);
inst->io.app_io = (fr_app_io_t const *)mi->exported;
inst->io.app_io_instance = mi->data;
inst->io.app_io_conf = mi->conf;

return 0;
}
Expand Down
2 changes: 2 additions & 0 deletions src/listen/tacacs/proto_tacacs.c
Expand Up @@ -103,6 +103,8 @@ static int transport_parse(TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *

mi = talloc_get_type_abort(*(void **)out, module_instance_t);
inst->io.app_io = (fr_app_io_t const *)mi->exported;
inst->io.app_io_instance = mi->data;
inst->io.app_io_conf = mi->conf;

return 0;
}
Expand Down

0 comments on commit e6ce797

Please sign in to comment.