From bc2640db61e1ccb895839e8fa356431505873221 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 12 Mar 2004 21:53:08 +0000 Subject: *size is a u_int16_t not a pointer so use 0 instead of NULL. --- usr.sbin/bgpd/rde_attr.c | 4 ++-- 1 file 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 @@ -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); } -- cgit v1.2.3