]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp-lease: fix handling of multiple routers 538/head
authorNick Owens <mischief@coreos.com>
Thu, 9 Jul 2015 19:51:55 +0000 (12:51 -0700)
committerNick Owens <mischief@coreos.com>
Sat, 11 Jul 2015 22:37:01 +0000 (15:37 -0700)
commita05185279bfc2420f60dc2a061d50bfcb646be70
treee7163e5c3b5f0cf73d46619e521f4f0ede897aaa
parent9a50ce20ef60263a6c88c29470ce761fcc424f2d
sd-dhcp-lease: fix handling of multiple routers

currently if a dhcp server sends more than one router, sd-dhcp-lease
does not copy the ip because it assumes it will only ever be 4 bytes. a
dhcp server could send more than one ip in the router list, so we should
copy the first one and ignore the rest of the bytes.
src/libsystemd-network/sd-dhcp-lease.c