treewide: always init interface list heads during initialization
authorDainis Jonitis <dainis.jonitis@ubnt.com>
Mon, 29 Apr 2019 11:40:14 +0000 (14:40 +0300)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 3 May 2019 12:51:52 +0000 (14:51 +0200)
commita2dd8d6bd918fb211db491c7dcb1810032f3f8ca
treeee6e81ddf764b091231cd6d38eedfb671e23350a
parenta17665eaabee92b04b947bb68b8717b18ace6615
treewide: always init interface list heads during initialization

When allocating interface, init dhcpv4_assignments, dhcpv4_fr_ips
and ia_assignments circular list heads to point to self. Avoids
checking whether next pointer is not null all over the place.

Signed-off-by: Dainis Jonitis <dainis.jonitis@ubnt.com>
src/config.c
src/dhcpv4.c
src/dhcpv6-ia.c
src/ubus.c