summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2006-12-13 13:30:07 +0000
committerclaudio <claudio@openbsd.org>2006-12-13 13:30:07 +0000
commitcad245a24c74e6f4451cb5977d71e8f44d4c955b (patch)
tree90dba419f10af82b9a04fbdcc5b4f9d61b254114
parentCorrect funtion name in fatal message. (diff)
downloadwireguard-openbsd-cad245a24c74e6f4451cb5977d71e8f44d4c955b.tar.xz
wireguard-openbsd-cad245a24c74e6f4451cb5977d71e8f44d4c955b.zip
Doh! I forgot the change from kroute to rroute in the deletion case.
Found by Armin Wolfermann
-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;
}