sync with OpenBSD -current
This commit is contained in:
parent
56a087cff9
commit
0189975fb5
61 changed files with 1691 additions and 1177 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: rtable.c,v 1.85 2023/11/12 17:51:40 bluhm Exp $ */
|
||||
/* $OpenBSD: rtable.c,v 1.86 2024/03/26 10:01:57 bluhm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2014-2016 Martin Pieuchot
|
||||
|
@ -875,7 +875,7 @@ an_match(struct art_node *an, const struct sockaddr *dst, int plen)
|
|||
return (0);
|
||||
|
||||
rt = SRPL_FIRST(&sr, &an->an_rtlist);
|
||||
match = (memcmp(rt->rt_dest, dst, dst->sa_len) == 0);
|
||||
match = (rt != NULL && memcmp(rt->rt_dest, dst, dst->sa_len) == 0);
|
||||
SRPL_LEAVE(&sr);
|
||||
|
||||
return (match);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue