summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/config.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-03-03 10:13:49 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-03-03 10:13:49 +0000
commit34bb01291145f1cdc91f2f62972e50990b4781d3 (patch)
tree0c8537ee471382d981abd89f90931812541bc335 /usr.sbin/bgpd/config.c
parentd0520293a38c42ed05c94add8efddeca982a9653 (diff)
missing freeaddrinfo()
From: Patrick Latifi <pat@eyeo.org> Patrick is doing an _excellent_ job in finding all these little omissions, thank you very very much!
Diffstat (limited to 'usr.sbin/bgpd/config.c')
-rw-r--r--usr.sbin/bgpd/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/config.c b/usr.sbin/bgpd/config.c
index 23497417e5f..3310f4e620f 100644
--- a/usr.sbin/bgpd/config.c
+++ b/usr.sbin/bgpd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.30 2004/03/02 19:45:04 henning Exp $ */
+/* $OpenBSD: config.c,v 1.31 2004/03/03 10:13:48 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -198,6 +198,7 @@ host_v6(const char *s, struct bgpd_addr *h)
h->scope_id =
((struct sockaddr_in6 *)res->ai_addr)->sin6_scope_id;
+ freeaddrinfo(res);
return (1);
}