mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
More code cleanup
This commit is contained in:
parent
6eb9f63e17
commit
9d1e51a91e
3 changed files with 12 additions and 11 deletions
|
@ -122,7 +122,7 @@ int icmp6_checksum(const struct icmp* icmpp, const struct ip6_hdr* ip6, int len)
|
|||
|
||||
if ( len % 2 == 1 )
|
||||
// Add in pad byte.
|
||||
sum += htons(((const u_char*) icmpp)[len - 1] << 8);
|
||||
sum = htons(((const u_char*) icmpp)[len - 1] << 8);
|
||||
else
|
||||
sum = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue