summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2016-05-23 15:16:17 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2016-05-23 15:16:17 +0000
commitcf2d64233cf03291527de80044fc59c1570af1d7 (patch)
tree3a5780ecc5f0c4c4d72ec8aa178661f841ae8d6a /usr.sbin
parent3933df1e77dc6104250a7c08c4122a3d5e5c0803 (diff)
Don't try to install pseudowires of unknown type.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ldpd/kroute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/kroute.c b/usr.sbin/ldpd/kroute.c
index 47993c40942..ff08824c424 100644
--- a/usr.sbin/ldpd/kroute.c
+++ b/usr.sbin/ldpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.48 2016/05/23 15:14:07 renato Exp $ */
+/* $OpenBSD: kroute.c,v 1.49 2016/05/23 15:16:16 renato Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -1505,10 +1505,10 @@ kmpw_install(const char *ifname, struct kpw *kpw)
case PW_TYPE_ETHERNET_TAGGED:
imr.imr_type = IMR_TYPE_ETHERNET_TAGGED;
break;
-
default:
log_warn("%s: unhandled pseudowire type (%#X)", __func__,
kpw->pw_type);
+ return;
}
if (kpw->flags & F_PW_CONTROLWORD)