dhcpv6: get rid of request_prefix
authorHans Dedecker <dedeckeh@gmail.com>
Fri, 11 Jan 2019 08:49:27 +0000 (09:49 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 11 Jan 2019 09:13:38 +0000 (10:13 +0100)
commit41494da588b543574196a3cd82eee50115b87be7
tree235cff381eb4f609733769cb30fe71c7ff1e96b1
parentf7437e4d4b97ed829d567b3ca917b25cf5e62dfb
dhcpv6: get rid of request_prefix

Get rid of the variable request_prefix as it serves no purpose anymore
and even triggers wrong code in dhcpv6_send by setting cnt to 12 which
is an invalid msg_iovlen index
Where appropriate request_prefix check can be replaced by checking the
pd_mode variable.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6.c