mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-18 08:47:00 +00:00
ouput format: fix active lease printing
Earlier ethernet address collection did not remove duplicated. Basically
the problem was the same as in problem fixed in commit
ae7747db87, but this time affecting only
the ethernet addresses. The fix is, as one can see, to make ethernet
collection to share structure with the lease, so that if one is wrong
both are wrong the same way.
Reported-by: Gilles Bouthenot <gilles.bouthenot@univ-fcomte.fr>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
d8aae53968
commit
fdc560bab9
5 changed files with 38 additions and 50 deletions
|
|
@ -259,7 +259,6 @@ int prepare_memory(void)
|
|||
xmalloc(sizeof(struct shared_network_t) * SHARED_NETWORKS);
|
||||
|
||||
ranges = xmalloc(sizeof(struct range_t) * RANGES);
|
||||
macaddr = NULL;
|
||||
|
||||
/* First shared network entry is all networks */
|
||||
shared_networks->name = xstrdup("All networks");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue