projects
/
libradsec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf9a54
)
forgot to correct for port byteorder
author
venaas
<venaas>
Mon, 28 Apr 2008 09:51:24 +0000
(09:51 +0000)
committer
venaas
<venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Mon, 28 Apr 2008 09:51:24 +0000
(09:51 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@244
e88ac4ed
-0b26-0410-9574-
a7f39faa03bf
radsecproxy.c
patch
|
blob
|
history
diff --git
a/radsecproxy.c
b/radsecproxy.c
index
3514f95
..
01d032b
100644
(file)
--- 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;
}