]> 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 08:32:59 +0000 (09:32 +0100)
commitdf9fe124d650bc438c531673492569da87523d20
treea183ec1ffc5d6aba7ffa4645917e15004780feba
parent020135dc855712d09b92a1c7ba3341cd22010f18
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
src/network/leaseshelper.c