diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-09-08 13:38:47 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-09-08 13:38:47 +0000 |
commit | e71daa1fc1011793841deeaf7e36700095809d17 (patch) | |
tree | 87f532cc3d1a99ac2350be20b8761994013a422d | |
parent | c1a591cd371413c9de59c91c83cc697c3c7a1eea (diff) |
Revert revision 33780, because the checksum is only calculated
from the header and not the content.
svn path=/trunk/; revision=34080
-rw-r--r-- | epan/dissectors/packet-ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c index 019c70927e..4946dca965 100644 --- a/epan/dissectors/packet-ip.c +++ b/epan/dissectors/packet-ip.c @@ -1502,7 +1502,7 @@ dissect_ip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) /* * If we have the entire IP header available, check the checksum. */ - if (ip_check_checksum && tvb_bytes_exist(tvb, offset, hlen) && !pinfo->in_error_pkt) { + if (ip_check_checksum && tvb_bytes_exist(tvb, offset, hlen)) { ipsum = ip_checksum(tvb_get_ptr(tvb, offset, hlen), hlen); if (tree) { if (ipsum == 0) { |