diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-04 22:45:01 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-05 10:45:44 +0100 |
commit | 03a2d9c4c1e360def4f9d0473f9b378ef2f14431 (patch) | |
tree | a4c461c32a90c3b7b671c0b15edc70ac18be5a36 /print-rpki-rtr.c | |
parent | 7e3467df250235e68fea65320a89a5116da85be2 (diff) | |
download | tcpdump-03a2d9c4c1e360def4f9d0473f9b378ef2f14431.tar.gz |
Use more the EXTRACT_U_1() macro (47/n)
In: if (... *(p) ...) ...
Diffstat (limited to 'print-rpki-rtr.c')
-rw-r--r-- | print-rpki-rtr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/print-rpki-rtr.c b/print-rpki-rtr.c index 1af8e863..4e2e7c14 100644 --- a/print-rpki-rtr.c +++ b/print-rpki-rtr.c @@ -183,7 +183,7 @@ rpki_rtr_pdu_print (netdissect_options *ndo, const u_char *tptr, const u_int len /* Protocol Version */ ND_TCHECK_1(tptr); - if (*tptr != 0) { + if (EXTRACT_U_1(tptr) != 0) { /* Skip the rest of the input buffer because even if this is * a well-formed PDU of a future RPKI-Router protocol version * followed by a well-formed PDU of RPKI-Router protocol |