summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r--usr.sbin/bgpd/rde.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index e1fbc296253..98b2b0bfa2e 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.70 2004/01/28 19:24:06 henning Exp $ */
+/* $OpenBSD: rde.c,v 1.71 2004/02/02 16:44:05 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -410,6 +410,7 @@ rde_update_dispatch(struct imsg *imsg)
/* need to free allocated attribute memory that is no longer used */
aspath_destroy(attrs.aspath);
+ attr_optfree(&attrs);
return (0);
}
@@ -878,7 +879,7 @@ network_init(struct network_head *net_l)
peerself.conf.max_prefix = ULONG_MAX;
peerself.conf.remote_as = conf->as;
snprintf(peerself.conf.descr, sizeof(peerself.conf.descr),
- "LOCAL AS %hd", conf->as);
+ "LOCAL AS %hu", conf->as);
for (n = TAILQ_FIRST(net_l); n != TAILQ_END(net_l);
n = TAILQ_FIRST(net_l)) {