mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-26 19:44:27 +08:00
NTP: Use GET_U_1() to replace a direct dereference
This commit is contained in:
parent
ebe47db276
commit
1729c1d31f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user