From: James Jones Date: Tue, 23 Aug 2022 14:48:42 +0000 (-0500) Subject: Correct vendor calculation typo (#4688) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1b80fbed66cc0a9515fe6e4b954d9a796c6059a;p=thirdparty%2Ffreeradius-server.git Correct vendor calculation typo (#4688) --- diff --git a/src/protocols/radius/packet.c b/src/protocols/radius/packet.c index e006c408a1c..7cbedb3644a 100644 --- a/src/protocols/radius/packet.c +++ b/src/protocols/radius/packet.c @@ -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);