]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct vendor calculation typo (#4688)
authorJames Jones <jejones3141@gmail.com>
Tue, 23 Aug 2022 14:48:42 +0000 (09:48 -0500)
committerGitHub <noreply@github.com>
Tue, 23 Aug 2022 14:48:42 +0000 (10:48 -0400)
src/protocols/radius/packet.c

index e006c408a1c500e06fa26171964fd1959e8ddf56..7cbedb3644ab33e458f957bab9beab19cd2292b3 100644 (file)
@@ -552,7 +552,7 @@ void _fr_radius_packet_log_hex(fr_log_t const *log, fr_radius_packet_t const *pa
               p = buffer + strlen(buffer);
                if ((attr[0] == FR_VENDOR_SPECIFIC) &&
                    (attr[1] > 6)) {
-                       vendor = (attr[2] << 25) | (attr[3] << 16) | (attr[4] << 8) | attr[5];
+                       vendor = (attr[2] << 24) | (attr[3] << 16) | (attr[4] << 8) | attr[5];
 
                       snprintf(p, buffer + sizeof(buffer) - p, "%02x%02x%02x%02x (%u)  ",
                                attr[2], attr[3], attr[4], attr[5], vendor);