diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-06-01 06:19:07 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-06-01 06:19:07 +0000 |
commit | c5cd223cf265e2fe5b772003febe855ec0f6ad59 (patch) | |
tree | c6d37a73877c98704b876645646ae2558b222d1d /sys | |
parent | 4930f6f8273cc11b0a930bee82b1cac9ac8c622c (diff) |
move all the art_node initialisation to art_get in art.c
ok mpi@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/art.c | 3 | ||||
-rw-r--r-- | sys/net/rtable.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/art.c b/sys/net/art.c index 552ff62e2b1..6f54be86e2e 100644 --- a/sys/net/art.c +++ b/sys/net/art.c @@ -1,4 +1,4 @@ -/* $OpenBSD: art.c,v 1.14 2016/04/13 08:04:14 mpi Exp $ */ +/* $OpenBSD: art.c,v 1.15 2016/06/01 06:19:06 dlg Exp $ */ /* * Copyright (c) 2015 Martin Pieuchot @@ -803,6 +803,7 @@ art_get(struct sockaddr *dst, uint8_t plen) an->an_dst = dst; an->an_plen = plen; + SRPL_INIT(&an->an_rtlist); return (an); } diff --git a/sys/net/rtable.c b/sys/net/rtable.c index aeb5c2777a9..7b05555c543 100644 --- a/sys/net/rtable.c +++ b/sys/net/rtable.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtable.c,v 1.42 2016/05/18 03:46:03 dlg Exp $ */ +/* $OpenBSD: rtable.c,v 1.43 2016/06/01 06:19:06 dlg Exp $ */ /* * Copyright (c) 2014-2015 Martin Pieuchot @@ -704,8 +704,6 @@ rtable_insert(unsigned int rtableid, struct sockaddr *dst, if (an == NULL) return (ENOBUFS); - SRPL_INIT(&an->an_rtlist); - prev = art_insert(ar, an, addr, plen); if (prev == NULL) { art_put(an); |