diff options
author | kevlo <kevlo@FreeBSD.org> | 2011-12-28 05:58:31 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2011-12-28 05:58:31 +0000 |
commit | 8ccf51483cf161d511c2f467a442e19ece12d97b (patch) | |
tree | 83c4baca6473b88f9b093c452bc921f30b26fe0f /contrib/tcpdump/print-eigrp.c | |
parent | ef46f37483114f91ba855f1036a2f9078e9dea81 (diff) | |
download | FreeBSD-src-8ccf51483cf161d511c2f467a442e19ece12d97b.zip FreeBSD-src-8ccf51483cf161d511c2f467a442e19ece12d97b.tar.gz |
Fix incorrect uses of sizeof().
The details of the fix can be found in the tcpdump git repository:
commit 684955d58611ee94eccdc34e82b32e676337188c
Diffstat (limited to 'contrib/tcpdump/print-eigrp.c')
-rw-r--r-- | contrib/tcpdump/print-eigrp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/tcpdump/print-eigrp.c b/contrib/tcpdump/print-eigrp.c index 2787baf..4f941d9 100644 --- a/contrib/tcpdump/print-eigrp.c +++ b/contrib/tcpdump/print-eigrp.c @@ -280,7 +280,7 @@ eigrp_print(register const u_char *pptr, register u_int len) { if (eigrp_tlv_len < sizeof(struct eigrp_tlv_header) || eigrp_tlv_len > tlen) { - print_unknown_data(tptr+sizeof(sizeof(struct eigrp_tlv_header)),"\n\t ",tlen); + print_unknown_data(tptr+sizeof(struct eigrp_tlv_header),"\n\t ",tlen); return; } @@ -468,7 +468,7 @@ eigrp_print(register const u_char *pptr, register u_int len) { } /* do we want to see an additionally hexdump ? */ if (vflag > 1) - print_unknown_data(tptr+sizeof(sizeof(struct eigrp_tlv_header)),"\n\t ", + print_unknown_data(tptr+sizeof(struct eigrp_tlv_header),"\n\t ", eigrp_tlv_len-sizeof(struct eigrp_tlv_header)); tptr+=eigrp_tlv_len; |