summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-10-25 23:41:51 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-10-25 23:41:51 +0000
commitb39b8ee3c46ba76bcccc061343371924e8001777 (patch)
treede54895de5e38ce56df36717697ad3366cd3519c /usr.sbin
parent8f86a15cac164ba9556c5f4d890666c55c46754c (diff)
Plug memory leak introduced in r1.15.
No functional change.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/route6d/route6d.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index e73d2922f74..a190a9d71ff 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route6d.c,v 1.74 2015/10/25 23:10:32 jca Exp $ */
+/* $OpenBSD: route6d.c,v 1.75 2015/10/25 23:41:50 jca Exp $ */
/* $KAME: route6d.c,v 1.111 2006/10/25 06:38:13 jinmei Exp $ */
/*
@@ -372,16 +372,6 @@ main(int argc, char *argv[])
if (dflag)
ifrtdump(0);
- if ((ripbuf = malloc(RIP6_MAXMTU)) == NULL) {
- fatal("malloc");
- /*NOTREACHED*/
- }
- memset(ripbuf, 0, RIP6_MAXMTU);
- ripbuf->rip6_cmd = RIP6_RESPONSE;
- ripbuf->rip6_vers = RIP6_VERSION;
- ripbuf->rip6_res1[0] = 0;
- ripbuf->rip6_res1[1] = 0;
-
if (signal(SIGALRM, sighandler) == SIG_ERR ||
signal(SIGQUIT, sighandler) == SIG_ERR ||
signal(SIGTERM, sighandler) == SIG_ERR ||