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>
Thu, 6 May 2021 12:51:07 +0000 (14:51 +0200)
commitcd1fc467f72e607bcd2464651b68f31bd2a8791a
tree6bc39fbc227fdb546e837b0774ca62e154b269bf
parent812384ce37acd909d70f9295a3b0fce98c8cf840
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)
src/libsystemd-network/dhcp-option.c