treewide: init assignment lists head
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 14 May 2019 14:18:51 +0000 (16:18 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 15 May 2019 08:10:08 +0000 (10:10 +0200)
commitc0c8034bc17519c7960f40f6d796b5485cfc4cdb
treeef3079b303164e2c5313a89e97e4d8e4d6aed4b1
parentf98b7ee899d492d32c4d857aa068daf95ae5be7b
treewide: init assignment lists head

When allocating an assignment in alloc_assignment; init the circular head
and lease_list circular lists. Avoids checking NULL pointer when freeing
the assignment in free_assignment.

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