Skip to content

Commit 1729c1d

Browse files
committed
NTP: Use GET_U_1() to replace a direct dereference
1 parent ebe47db commit 1729c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

print-ntp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ ntp_time_print(netdissect_options *ndo,
277277
* modified or extended in the future, and unregistered kiss
278278
* codes are possible (and are being seen in the field).
279279
*/
280-
if (!ND_ASCII_ISPRINT((bp->refid)[0])) {
280+
if (!ND_ASCII_ISPRINT(GET_U_1(bp->refid))) {
281281
ND_PRINT("(unspec)");
282282
ND_TCHECK_4(bp->refid);
283283
} else {

0 commit comments

Comments
 (0)