From: Arran Cudbard-Bell Date: Mon, 5 Oct 2015 14:16:45 +0000 (-0400) Subject: NAS-Port should be 32bits X-Git-Tag: release_3_0_10~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2990a2217ca26389fd652035fe1d5f560c3f02b9;p=thirdparty%2Ffreeradius-server.git NAS-Port should be 32bits --- diff --git a/src/main/auth.c b/src/main/auth.c index e99eba087b5..10a0a3e7819 100644 --- a/src/main/auth.c +++ b/src/main/auth.c @@ -38,7 +38,7 @@ char *auth_name(char *buf, size_t buflen, REQUEST *request, bool do_cli) { VALUE_PAIR *cli; VALUE_PAIR *pair; - uint16_t port = 0; + uint32_t port = 0; /* RFC 2865 NAS-Port is 4 bytes */ char const *tls = ""; if ((cli = fr_pair_find_by_num(request->packet->vps, PW_CALLING_STATION_ID, 0, TAG_ANY)) == NULL) {