diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-02 16:44:06 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-02 16:44:06 +0000 |
commit | b1d37c431a953e79ea54c8adff6bc535ac6f44b0 (patch) | |
tree | 8d76dc97c2c8db2fc6bb91b4e581c659b8082bd2 /usr.sbin/bgpd | |
parent | 90b6b91ca0cc48d7f585933c1100641c39ed3ac1 (diff) |
Seal a memory leak and fix a format string, conf->as is unsigned.
OK henning@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 5 |
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)) { |