summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2009-02-10 17:32:58 +0000
committerstsp <stsp@openbsd.org>2009-02-10 17:32:58 +0000
commit94dc1426a7d4d2e0d93b27f485e9a54ea150fc05 (patch)
tree379d70b72dfaff55ed58aa76e0bc377e5cef21f1
parentdo not compile with RUN_DEBUG by default (diff)
downloadwireguard-openbsd-94dc1426a7d4d2e0d93b27f485e9a54ea150fc05.tar.xz
wireguard-openbsd-94dc1426a7d4d2e0d93b27f485e9a54ea150fc05.zip
Fix two obvious copy-paste errors in fatal error messages. We were
printing IFINFO while we are actually handling an IFDELETE imsg.
-rw-r--r--usr.sbin/ospf6d/ospfe.c4
-rw-r--r--usr.sbin/ospf6d/rde.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ospf6d/ospfe.c b/usr.sbin/ospf6d/ospfe.c
index 84ac7a55809..95516b70ed6 100644
--- a/usr.sbin/ospf6d/ospfe.c
+++ b/usr.sbin/ospf6d/ospfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfe.c,v 1.22 2009/02/03 14:12:22 stsp Exp $ */
+/* $OpenBSD: ospfe.c,v 1.23 2009/02/10 17:32:58 stsp Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -314,7 +314,7 @@ ospfe_dispatch_main(int fd, short event, void *bula)
case IMSG_IFDELETE:
if (imsg.hdr.len != IMSG_HEADER_SIZE +
sizeof(ifindex))
- fatalx("IFINFO imsg with wrong len");
+ fatalx("IFDELETE imsg with wrong len");
memcpy(&ifindex, imsg.data, sizeof(ifindex));
iface = if_find(ifindex);
diff --git a/usr.sbin/ospf6d/rde.c b/usr.sbin/ospf6d/rde.c
index bdc39142ddf..bdda1ca0bb5 100644
--- a/usr.sbin/ospf6d/rde.c
+++ b/usr.sbin/ospf6d/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.19 2009/02/03 14:02:01 stsp Exp $ */
+/* $OpenBSD: rde.c,v 1.20 2009/02/10 17:32:58 stsp Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -687,7 +687,7 @@ rde_dispatch_parent(int fd, short event, void *bula)
case IMSG_IFDELETE:
if (imsg.hdr.len != IMSG_HEADER_SIZE +
sizeof(ifindex))
- fatalx("IFINFO imsg with wrong len");
+ fatalx("IFDELETE imsg with wrong len");
memcpy(&ifindex, imsg.data, sizeof(ifindex));
iface = if_find(ifindex);