summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2008-07-23 11:57:50 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-07-23 11:57:50 +0000
commit3c370be673d6754c65bafad2664c7c2367625989 (patch)
tree296fbb32822b6e7af75cdfc2f79cb17c394e3090
parentbeaf192ca36acf20b23b77349b332b8590fbedff (diff)
accept status-server on accounting port
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.1@324 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r--radsecproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 8c86772..e837e49 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2368,11 +2368,11 @@ void *udpaccserverrd(void *arg) {
for (;;) {
memset(&rq, 0, sizeof(struct request));
rq.buf = radudpget(udp_accserver_sock, &rq.from, NULL, &rq.fromsa);
- if (*(uint8_t *)rq.buf == RAD_Accounting_Request) {
+ if (*rq.buf == RAD_Accounting_Request || *rq.buf == RAD_Status_Server) {
radsrv(&rq);
continue;
}
- debug(DBG_INFO, "udpaccserverrd: got something other than accounting-request, ignoring");
+ debug(DBG_INFO, "udpaccserverrd: accepting only accounting-request and status-server, ignoring");
freerqdata(&rq);
}
}