NTP: Use GET_U_1() to replace a direct dereference

This commit is contained in:
Francois-Xavier Le Bail 2024-09-30 20:03:40 +02:00
parent ebe47db276
commit 1729c1d31f

View File

@ -277,7 +277,7 @@ ntp_time_print(netdissect_options *ndo,
* modified or extended in the future, and unregistered kiss
* codes are possible (and are being seen in the field).
*/
if (!ND_ASCII_ISPRINT((bp->refid)[0])) {
if (!ND_ASCII_ISPRINT(GET_U_1(bp->refid))) {
ND_PRINT("(unspec)");
ND_TCHECK_4(bp->refid);
} else {