]> git.ipfire.org Git - thirdparty/libvirt.git/commit
leaseshelper: fix crash when no mac is specified
authorJán Tomko <jtomko@redhat.com>
Thu, 14 Jan 2016 13:31:17 +0000 (14:31 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 20 Jan 2016 10:12:36 +0000 (11:12 +0100)
commitd5ef3cbb2cdc3dd497b00228512d7936c34a9cc3
treed7079c1ae2d539c44b4c536b1d3a98da954dad5b
parentfa3eb97fdc62425da6d49de140590d151e8e0720
leaseshelper: fix crash when no mac is specified

If dnsmasq specified DNSMASQ_IAID (so we're dealing with an IPv6
lease) but no DNSMASQ_MAC, we skip creation of the new lease object.

Also skip adding it to the leases array.

https://bugzilla.redhat.com/show_bug.cgi?id=1202350
(cherry picked from commit df9fe124d650bc438c531673492569da87523d20)
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/network/leaseshelper.c