Commit b4644fb5 authored by venaas's avatar venaas Committed by venaas
Browse files

forgot to correct for port byteorder

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@244 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 7bf9a54c
......@@ -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;
}
......
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