diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-22 09:28:18 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-22 10:36:51 +0100 |
commit | c8e0a4a1681fd3a9673cddcd7b3f93a869ac6813 (patch) | |
tree | 2430d9cf02a3acda21d7d55d83925b577c4c92b5 /print-rsvp.c | |
parent | 9c9a3c52971511af27157461795f17971f5a526a (diff) | |
download | tcpdump-c8e0a4a1681fd3a9673cddcd7b3f93a869ac6813.tar.gz |
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (20/n)
e op *p
Partial list.
Diffstat (limited to 'print-rsvp.c')
-rw-r--r-- | print-rsvp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print-rsvp.c b/print-rsvp.c index b511c29e..5a652d4d 100644 --- a/print-rsvp.c +++ b/print-rsvp.c @@ -1185,8 +1185,8 @@ rsvp_obj_print(netdissect_options *ndo, "none", EXTRACT_8BITS((obj_tptr + 2))), *(obj_tptr + 2))); - obj_tlen-=4+*(obj_tptr+3); - obj_tptr+=4+*(obj_tptr+3); + obj_tlen-=4+EXTRACT_8BITS((obj_tptr + 3)); + obj_tptr+=4+EXTRACT_8BITS((obj_tptr + 3)); break; default: hexdump=TRUE; @@ -1649,7 +1649,7 @@ rsvp_obj_print(netdissect_options *ndo, tok2str(rsvp_obj_prop_tlv_values,"unknown",EXTRACT_8BITS(obj_tptr)), EXTRACT_8BITS(obj_tptr), *(obj_tptr + 1))); - if (obj_tlen < *(obj_tptr+1)) + if (obj_tlen < EXTRACT_8BITS((obj_tptr + 1))) return-1; if (*(obj_tptr+1) < 2) return -1; |