More code cleanup

This commit is contained in:
Daniel Thayer 2012-03-02 13:52:45 -06:00
parent 6eb9f63e17
commit 9d1e51a91e
3 changed files with 12 additions and 11 deletions

View file

@ -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;