NAS-Port should be 32bits
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 5 Oct 2015 14:16:45 +0000 (10:16 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 5 Oct 2015 14:16:57 +0000 (10:16 -0400)
src/main/auth.c

index e99eba0..10a0a3e 100644 (file)
@@ -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) {