chiark / gitweb /
sd-dhcp: fix test of magic cookie
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sun, 14 Sep 2014 20:06:37 +0000 (22:06 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sun, 14 Sep 2014 20:47:21 +0000 (22:47 +0200)
commit86be3e1e6558f4e7e20c537e644656eb6f37b7d0
tree87034ccbac6bb597e7cc82be36370d98d7e61018
parentd1c457badfce0dc86b54b2cac2c5eec99d7bc65e
sd-dhcp: fix test of magic cookie

The magic cookie is set in dhcp_message_init. Test the magic cookie
value intead of writing the last 3/4 of it directly.

Found with Coverity. Fixes: CID#1237732 CID#1237734 CID#1237735
src/libsystemd-network/test-dhcp-option.c