From b4644fb5a08feffaf1a433cf39c37b04d6f16f6d Mon Sep 17 00:00:00 2001 From: venaas Date: Mon, 28 Apr 2008 09:51:24 +0000 Subject: forgot to correct for port byteorder git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@244 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 4 ++-- 1 file 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; } -- cgit v1.1