diff options
author | 2015-07-19 21:04:38 +0000 | |
---|---|---|
committer | 2015-07-19 21:04:38 +0000 | |
commit | f8b7bdf2e2ec3b61a24a7ad4153bb3717bdd90ae (patch) | |
tree | be60d640fa585a74760517c6c6db8ea4f5672543 | |
parent | Implement md5 authentication support. (diff) | |
download | wireguard-openbsd-f8b7bdf2e2ec3b61a24a7ad4153bb3717bdd90ae.tar.xz wireguard-openbsd-f8b7bdf2e2ec3b61a24a7ad4153bb3717bdd90ae.zip |
Add missing LIST_INIT's.
ok claudio@
-rw-r--r-- | usr.sbin/ldpd/interface.c | 5 | ||||
-rw-r--r-- | usr.sbin/ldpd/neighbor.c | 3 | ||||
-rw-r--r-- | usr.sbin/ldpd/parse.y | 7 |
3 files changed, 12 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/interface.c b/usr.sbin/ldpd/interface.c index f9b125117d6..98ae5d928e7 100644 --- a/usr.sbin/ldpd/interface.c +++ b/usr.sbin/ldpd/interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interface.c,v 1.22 2015/03/21 18:32:01 renato Exp $ */ +/* $OpenBSD: interface.c,v 1.23 2015/07/19 21:04:38 renato Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -55,6 +55,9 @@ if_new(struct kif *kif) iface->state = IF_STA_DOWN; + LIST_INIT(&iface->addr_list); + LIST_INIT(&iface->adj_list); + strlcpy(iface->name, kif->ifname, sizeof(iface->name)); /* get type */ diff --git a/usr.sbin/ldpd/neighbor.c b/usr.sbin/ldpd/neighbor.c index 99b291e3ad5..05f83675a47 100644 --- a/usr.sbin/ldpd/neighbor.c +++ b/usr.sbin/ldpd/neighbor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: neighbor.c,v 1.47 2015/07/19 21:01:56 renato Exp $ */ +/* $OpenBSD: neighbor.c,v 1.48 2015/07/19 21:04:38 renato Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -218,6 +218,7 @@ nbr_new(struct in_addr id, struct in_addr addr) if ((nbr = calloc(1, sizeof(*nbr))) == NULL) fatal("nbr_new"); + LIST_INIT(&nbr->adj_list); nbr->state = NBR_STA_PRESENT; nbr->id.s_addr = id.s_addr; nbr->addr.s_addr = addr.s_addr; diff --git a/usr.sbin/ldpd/parse.y b/usr.sbin/ldpd/parse.y index 904141bbdf1..85a1f1d0da1 100644 --- a/usr.sbin/ldpd/parse.y +++ b/usr.sbin/ldpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.25 2015/07/19 21:01:56 renato Exp $ */ +/* $OpenBSD: parse.y,v 1.26 2015/07/19 21:04:38 renato Exp $ */ /* * Copyright (c) 2004, 2005, 2008 Esben Norby <norby@openbsd.org> @@ -763,6 +763,11 @@ parse_config(char *filename, int opts) } topfile = file; + LIST_INIT(&conf->iface_list); + LIST_INIT(&conf->addr_list); + LIST_INIT(&conf->tnbr_list); + LIST_INIT(&conf->nbrp_list); + yyparse(); errors = file->errors; popfile(); |