diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-05 19:21:23 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-12-05 19:21:23 +0100 |
commit | 9f1e5edac5318dc2bacc6c96e61af2a2050d27ef (patch) | |
tree | a9df748ae84454dd3b30e7dc8be8a54f39e82094 /print-wb.c | |
parent | 03a2d9c4c1e360def4f9d0473f9b378ef2f14431 (diff) | |
download | tcpdump-9f1e5edac5318dc2bacc6c96e61af2a2050d27ef.tar.gz |
WB: Fix a bounds check
Diffstat (limited to 'print-wb.c')
-rw-r--r-- | print-wb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -203,7 +203,7 @@ wb_id(netdissect_options *ndo, len -= sizeof(*io) * nid; io = (const struct id_off *)(id + 1); cp = (const char *)(io + nid); - if (ND_TTEST2(cp, len)) { + if (ND_TTEST2(*cp, len)) { ND_PRINT((ndo, "\"")); fn_print(ndo, (const u_char *)cp, (const u_char *)cp + len); ND_PRINT((ndo, "\"")); |