diff options
author | 2006-02-09 20:54:56 +0000 | |
---|---|---|
committer | 2006-02-09 20:54:56 +0000 | |
commit | 3ac506dc0c1021b3aa247ceb50fe88a2b003c1cd (patch) | |
tree | 515214e645e858cd3f3fb8aba8e17a52ce030f04 | |
parent | attr_free() should not modify others_len as it does not resize the others (diff) | |
download | wireguard-openbsd-3ac506dc0c1021b3aa247ceb50fe88a2b003c1cd.tar.xz wireguard-openbsd-3ac506dc0c1021b3aa247ceb50fe88a2b003c1cd.zip |
When comparing community type, cast to u_int16_t. The same is done for the
AS. OK henning@
-rw-r--r-- | usr.sbin/bgpd/rde_attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c index 3564503c6d0..60a5869a47b 100644 --- a/usr.sbin/bgpd/rde_attr.c +++ b/usr.sbin/bgpd/rde_attr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_attr.c,v 1.61 2006/02/09 20:50:09 claudio Exp $ */ +/* $OpenBSD: rde_attr.c,v 1.62 2006/02/09 20:54:56 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -723,7 +723,7 @@ community_match(void *data, u_int16_t len, int as, int type) etype <<= 8; etype |= *p++; if ((as == COMMUNITY_ANY || (u_int16_t)as == eas) && - (type == COMMUNITY_ANY || type == etype)) + (type == COMMUNITY_ANY || (u_int16_t)type == etype)) return (1); } return (0); |