When passing extra-dhcp-opt into the port-create where an empty string
is provided as opt_value=' ', the create and update routine will load the
empty string into the DB. The result when written to the opts file is:
"tag:ece4c8aa-15c9-4f6b-8c42-7d4e285734bf,option:server-ip-address", which
when read by dnsmasq has been tested to cause dnsmasq to segment fault.
Reviewed: https:/ /review. openstack. org/59858 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=794a1325dfc 8a6937412a597f1 9acecf08d4b34a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 794a1325dfc8a69 37412a597f19ace cf08d4b34a
Author: dekehn <email address hidden>
Date: Tue Dec 3 15:28:55 2013 -0700
extra_dhcp_opt add checks for empty strings
When passing extra-dhcp-opt into the port-create where an empty string ece4c8aa- 15c9-4f6b- 8c42-7d4e285734 bf,option: server- ip-address" , which
is provided as opt_value=' ', the create and update routine will load the
empty string into the DB. The result when written to the opts file is:
"tag:
when read by dnsmasq has been tested to cause dnsmasq to segment fault.
Change-Id: I31de4a3d27092b b219d20221c5ef5 a6b22e050dc
Closes-Bug: #1257467