chiark / gitweb /
libsystemd-dhcp: Fix checksum computation for buffer with odd size
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 20 Dec 2013 15:16:15 +0000 (17:16 +0200)
committerTom Gundersen <teg@jklm.no>
Sun, 22 Dec 2013 13:28:00 +0000 (14:28 +0100)
commit0c6a3c888abd720b5ab28162d1ba4eadffde5272
tree9f3ecc81db7317b071caf74d6a9563abb5c88860
parent77e8d29dd2ecfa7f11c31c8d96021d323ab3fe3a
libsystemd-dhcp: Fix checksum computation for buffer with odd size

Fix off-by-one error and notice that summing may need more than one
round for the result to be in the lower 16 bits.
src/libsystemd-dhcp/dhcp-client.c
src/libsystemd-dhcp/test-dhcp-client.c