diff options
author | venaas <venaas> | 2008-04-28 09:51:24 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-04-28 09:51:24 +0000 |
commit | b4644fb5a08feffaf1a433cf39c37b04d6f16f6d (patch) | |
tree | 18bc148cbca29c5f4ac26d10057ade8c0929aa3a | |
parent | 7bf9a54cf4045b389206489266d013c5025ee654 (diff) |
forgot to correct for port byteorder
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@244 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r-- | radsecproxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index 3514f95..01d032b 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -939,10 +939,10 @@ int clientradputudp(struct server *server, unsigned char *rad) { } if (*rad == RAD_Accounting_Request) - (*port)++; + *port = htons(ntohs(*port) + 1); if (sendto(server->sock, rad, len, 0, sap, conf->addrinfo->ai_addrlen) >= 0) { - debug(DBG_DBG, "clienradputudp: sent UDP of length %d to %s port %d", len, conf->host, *port); + debug(DBG_DBG, "clienradputudp: sent UDP of length %d to %s port %d", len, conf->host, ntohs(*port)); return 1; } |