diff options
author | venaas <venaas> | 2008-07-15 12:54:53 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-07-15 12:54:53 +0000 |
commit | 2f585d01c80a4883e3ad35209e3a16cdc984184f (patch) | |
tree | e6c8dfd98b530849f4304ff668cd10bd5ca6b2d6 /radsecproxy.c | |
parent | 9bd9afbfb5d3307c3d7071f611434afeac0d6042 (diff) |
UDP accounting replies with correct source port
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@301 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index b2e734e..99b9dde 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2529,7 +2529,8 @@ void *udpserverwr(void *arg) { } pthread_mutex_unlock(&replyq->mutex); - if (sendto(udp_server_sock, reply->buf, RADLEN(reply->buf), 0, + if (sendto(*(uint8_t *)reply->buf == RAD_Accounting_Response ? udp_accserver_sock : udp_server_sock, + reply->buf, RADLEN(reply->buf), 0, (struct sockaddr *)&reply->tosa, SOCKADDR_SIZE(reply->tosa)) < 0) debug(DBG_WARN, "sendudp: send failed"); free(reply->buf); |