diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-03-12 21:53:08 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-03-12 21:53:08 +0000 |
commit | bc2640db61e1ccb895839e8fa356431505873221 (patch) | |
tree | 0b616f6dfd2b7352cfc5ec1c36d1e8a1eff15b82 /usr.sbin/bgpd | |
parent | 9872ec4b58fa1b6825c9db2c2364b56b4a59fa52 (diff) |
*size is a u_int16_t not a pointer so use 0 instead of NULL.
Diffstat (limited to 'usr.sbin/bgpd')
-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 155ec52cc02..ecda5bd2e1d 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.24 2004/03/12 21:21:39 claudio Exp $ */ +/* $OpenBSD: rde_attr.c,v 1.25 2004/03/12 21:53:07 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -303,7 +303,7 @@ attr_error(u_char *p, u_int16_t len, struct attr_flags *attr, } TAILQ_FOREACH(a, &attr->others, attr_l) if (type == a->type) { - *size = NULL; + *size = 0; *suberr = ERR_UPD_ATTRLIST; return (NULL); } |