Commit f31f17a4 authored by Nigel Kukard's avatar Nigel Kukard

Only send CoA/POD for accounting updates

parent 1d36c549
......@@ -887,6 +887,9 @@ sub process_request {
auth_resp($resp->pack, getAttributeValue($user->{'ConfigAttributes'},"SMRadius-Config-Secret"))
);
# CoA and POD only apply to accounting updates...
if ($pkt->rawattr('Acct-Status-Type') eq "2") {
# Build a list of our attributes in the packet
my $acctAttributes;
foreach my $attr ($pkt->attributes) {
......@@ -1039,6 +1042,7 @@ sub process_request {
$request->addLogLine(". Invalid CoA/POD response");
}
}
}
# Or maybe a access request
} elsif ($pkt->code eq "Access-Request") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment