From 2990a2217ca26389fd652035fe1d5f560c3f02b9 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Mon, 5 Oct 2015 10:16:45 -0400 Subject: [PATCH] NAS-Port should be 32bits --- src/main/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/auth.c b/src/main/auth.c index e99eba0..10a0a3e 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) { -- 2.1.4