libsystemd-network: fix dhcp option buffer confusion
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 Apr 2021 08:55:09 +0000 (04:55 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 15 May 2021 17:32:30 +0000 (19:32 +0200)
commit3def84156c37b9a873c29bb93afe5ddaa341c698
tree639ec0f27e155b2c114d26453c1fa69aab070893
parentdfe66e7b9778062a879511facb0da602f2ffa012
libsystemd-network: fix dhcp option buffer confusion

We were writing to the wrong buffer with a wrong offset :(
Bug present since the original introduction of the code in
04b28be1a306fd2ba454d3ee333d63df71aa3873.

(cherry picked from commit 828b603a791edd04a5c3603456aa8caca44ce67e)
(cherry picked from commit cd1fc467f72e607bcd2464651b68f31bd2a8791a)
src/libsystemd-network/dhcp-option.c