summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/kroute.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-12-13 13:30:08 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-12-13 13:30:08 +0000
commitea512303384c1d3a9ced12a40ea73a25b3cc14a4 (patch)
treed40eb5005003e496efa6547ed688768726d6ec28 /usr.sbin/ospfd/kroute.c
parent32dd50075cd26325cbc08da4cd64e13579190cbd (diff)
Doh! I forgot the change from kroute to rroute in the deletion case.
Found by Armin Wolfermann
Diffstat (limited to 'usr.sbin/ospfd/kroute.c')
-rw-r--r--usr.sbin/ospfd/kroute.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c
index 6080c6aa249..9fc84bbbcfb 100644
--- a/usr.sbin/ospfd/kroute.c
+++ b/usr.sbin/ospfd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.38 2006/12/07 19:14:27 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.39 2006/12/13 13:30:07 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -352,8 +352,10 @@ dont_redistribute:
if (kr->flags & F_REDISTRIBUTED) {
/* remove redistributed flag and inform the RDE */
kr->flags &= ~F_REDISTRIBUTED;
- main_imsg_compose_rde(IMSG_NETWORK_DEL, 0, kr,
- sizeof(struct kroute));
+ rr.kr = *kr;
+ rr.metric = 0;
+ main_imsg_compose_rde(IMSG_NETWORK_DEL, 0, &rr,
+ sizeof(struct rroute));
}
return;
}