Skip to content

Commit

Permalink
Don't replicate reply packets.
Browse files Browse the repository at this point in the history
The code never handled it, so it's safe to delete the functions
  • Loading branch information
alandekok committed Apr 8, 2014
1 parent 56792b6 commit 8a75be1
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions src/modules/rlm_replicate/rlm_replicate.c
Expand Up @@ -229,28 +229,13 @@ static rlm_rcode_t mod_preaccounting(void *instance, REQUEST *request)
return replicate_packet(instance, request, PAIR_LIST_REQUEST, request->packet->code);
}

static rlm_rcode_t mod_accounting(void *instance, REQUEST *request)
{
return replicate_packet(instance, request, PAIR_LIST_REPLY, request->reply->code);
}

#ifdef WITH_PROXY
static rlm_rcode_t mod_pre_proxy(void *instance, REQUEST *request)
{
return replicate_packet(instance, request, PAIR_LIST_PROXY_REQUEST, request->proxy->code);
}

static rlm_rcode_t mod_post_proxy(void *instance, REQUEST *request)
{
return replicate_packet(instance, request, PAIR_LIST_PROXY_REPLY, request->proxy_reply->code);
}
#endif

static rlm_rcode_t mod_post_auth(void *instance, REQUEST *request)
{
return replicate_packet(instance, request, PAIR_LIST_REPLY, request->reply->code);
}

#ifdef WITH_COA
static rlm_rcode_t mod_recv_coa(void *instance, REQUEST *request)
{
Expand Down Expand Up @@ -279,15 +264,15 @@ module_t rlm_replicate = {
NULL, /* authentication */
mod_authorize, /* authorization */
mod_preaccounting, /* preaccounting */
mod_accounting, /* accounting */
NULL, /* accounting */
NULL, /* checksimul */
#ifdef WITH_PROXY
mod_pre_proxy, /* pre-proxy */
mod_post_proxy, /* post-proxy */
NULL, /* post-proxy */
#else
NULL, NULL,
#endif
mod_post_auth /* post-auth */
NULL /* post-auth */
#ifdef WITH_COA
, mod_recv_coa, /* coa-request */
NULL
Expand Down

0 comments on commit 8a75be1

Please sign in to comment.