summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2016-05-23 16:50:11 +0000
committerrenato <renato@openbsd.org>2016-05-23 16:50:11 +0000
commitcc5b73a71f48b8868a08bf6629f3097e09aaa058 (patch)
treef59afb2f93dffb13376d46704444a5de98904d1c
parentFix warnings when compiling with -pedantic. (diff)
downloadwireguard-openbsd-cc5b73a71f48b8868a08bf6629f3097e09aaa058.tar.xz
wireguard-openbsd-cc5b73a71f48b8868a08bf6629f3097e09aaa058.zip
Remove protection that was prevent pseudowires to be updated in the kernel.
During the setup of a pseudowire, it might change its parameters (e.g. control-word) once the negotiation with the remote peer is done.
-rw-r--r--usr.sbin/ldpd/lde.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/lde.c b/usr.sbin/ldpd/lde.c
index 07b1474741b..6ecc248b0fb 100644
--- a/usr.sbin/ldpd/lde.c
+++ b/usr.sbin/ldpd/lde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lde.c,v 1.46 2016/05/23 16:43:57 renato Exp $ */
+/* $OpenBSD: lde.c,v 1.47 2016/05/23 16:50:11 renato Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -576,8 +576,6 @@ lde_send_change_klabel(struct fec_node *fn, struct fec_nh *fnh)
return;
pw = (struct l2vpn_pw *) fnh->data;
- if (pw->flags & F_PW_STATUS_UP)
- return;
pw->flags |= F_PW_STATUS_UP;
bzero(&kpw, sizeof(kpw));