summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal/radius_accounting.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-01-10 16:56:56 +0000
committerErmal <eri@pfsense.org>2011-01-10 17:00:19 +0000
commitd0d70b03bb35824adc977560d615c5d944025341 (patch)
treeec162449abb60ccca1c1d9eab1608ae81b1fad1f /usr/local/captiveportal/radius_accounting.inc
parentc97297fda0548bf9e2c32dce97ffcea0f2f1bb8e (diff)
downloadpfsense-d0d70b03bb35824adc977560d615c5d944025341.zip
pfsense-d0d70b03bb35824adc977560d615c5d944025341.tar.gz
Ticket #1013. Force NAS_PORT to be of type integer to avoid it being interpreted as char and generate wrong radius packet.
Diffstat (limited to 'usr/local/captiveportal/radius_accounting.inc')
-rw-r--r--usr/local/captiveportal/radius_accounting.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/captiveportal/radius_accounting.inc b/usr/local/captiveportal/radius_accounting.inc
index 958fabf..67bb523 100644
--- a/usr/local/captiveportal/radius_accounting.inc
+++ b/usr/local/captiveportal/radius_accounting.inc
@@ -126,7 +126,7 @@ function RADIUS_ACCOUNTING_START($ruleno, $username, $sessionid, $radiusservers,
// Default attributes
$racct->putAttribute(RADIUS_SERVICE_TYPE, RADIUS_LOGIN);
$racct->putAttribute(RADIUS_NAS_PORT_TYPE, RADIUS_ETHERNET);
- $racct->putAttribute(RADIUS_NAS_PORT, $nas_port);
+ $racct->putAttribute(RADIUS_NAS_PORT, $nas_port, 'integer');
$racct->putAttribute(RADIUS_ACCT_SESSION_ID, $sessionid);
// Extra data to identify the client and nas
@@ -319,4 +319,4 @@ function remainder($bytes) {
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud