diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-11-10 15:18:12 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-11-10 15:18:12 +0000 |
commit | 91b48b3a9493dbc865000abd94e8cabea688e897 (patch) | |
tree | 14bd76a1d31e99f1b59c62553cd7fef117a268bd /usr.sbin/bgpd/rde_attr.c | |
parent | 8afdbd81097b76fe0404d13c062189e97fde1633 (diff) |
It is not needed to mask the value wit 0xff as it is < 255. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_attr.c')
-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 fc51ebcbf30..9fcffd15b64 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.43 2004/08/10 13:08:13 claudio Exp $ */ +/* $OpenBSD: rde_attr.c,v 1.44 2004/11/10 15:18:11 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -53,7 +53,7 @@ attr_write(void *p, u_int16_t p_len, u_int8_t flags, u_int8_t type, memcpy(b, &tmp, sizeof(tmp)); b += 2; } else - *b++ = (u_char)(data_len & 0xff); + *b++ = (u_char)data_len; if (data_len != 0) memcpy(b, data, data_len); |