]> xenbits.xensource.com Git - libvirt.git/commit
bridge: Fix potential segfault when preparing dnsmasq arguments
authorJiri Denemark <jdenemar@redhat.com>
Wed, 11 Aug 2010 15:47:18 +0000 (17:47 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 11 Aug 2010 18:42:08 +0000 (20:42 +0200)
commit6f42d3253a05fc6c4d94d8d389019f956158c753
tree6e4842e852d0036e709337eb9cb134842c08fb47
parent3de8245560267f6a06afe34a70117211b7b7e68f
bridge: Fix potential segfault when preparing dnsmasq arguments

We add --dhcp-lease-max=xxx argument when network->def->nranges > 0 but
we only allocate space for in the opposite case :-) I guess we are lucky
enough to miscount somewhere else so that we actually allocate more
space than we need since no-one has hit this bug so far.
src/network/bridge_driver.c