Skip to content

Commit

Permalink
added setting of operations in reply
Browse files Browse the repository at this point in the history
  • Loading branch information
rssh committed Nov 22, 2011
1 parent 1faedfa commit ca26e92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rlm_protobuf.c
Expand Up @@ -656,14 +656,18 @@ static int adapt_protobuf_reply(int method,
)
) {
if (action->op == ORG__FREERADIUS__VALUE_PAIR_OP__REPLACE) {
vp->operator = T_OP_SET;
pairreplace(&(request->config_items), vp);
} else {
vp->operator = T_OP_ADD;
pairadd(&(request->config_items), vp);
}
} else {
if (action->op == ORG__FREERADIUS__VALUE_PAIR_OP__REPLACE) {
vp->operator = T_OP_SET;
pairreplace(&(request->reply->vps),vp);
} else {
vp->operator = T_OP_ADD;
pairadd(&(request->reply->vps),vp);
}
}
Expand Down

0 comments on commit ca26e92

Please sign in to comment.