summaryrefslogtreecommitdiffstats
path: root/usr.sbin/npppd/l2tp
diff options
context:
space:
mode:
authoryasuoka <yasuoka@openbsd.org>2015-07-20 19:03:54 +0000
committeryasuoka <yasuoka@openbsd.org>2015-07-20 19:03:54 +0000
commit213076fa621e5c9b657912bf6eb78c98e9cb3b85 (patch)
tree4b5e0326ca90c65ce05aed9fef70604b9866ee23 /usr.sbin/npppd/l2tp
parentAllow the sched_yield, __thrsleep, __thrwakeup, and __threxit syscalls (diff)
downloadwireguard-openbsd-213076fa621e5c9b657912bf6eb78c98e9cb3b85.tar.xz
wireguard-openbsd-213076fa621e5c9b657912bf6eb78c98e9cb3b85.zip
Pass the errcode when disconnecting L2TP call.
From Yuuichi Someya at IIJ.
Diffstat (limited to 'usr.sbin/npppd/l2tp')
-rw-r--r--usr.sbin/npppd/l2tp/l2tp_call.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/npppd/l2tp/l2tp_call.c b/usr.sbin/npppd/l2tp/l2tp_call.c
index d1c2358bc18..843d7182d55 100644
--- a/usr.sbin/npppd/l2tp/l2tp_call.c
+++ b/usr.sbin/npppd/l2tp/l2tp_call.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: l2tp_call.c,v 1.17 2015/06/24 05:20:16 yasuoka Exp $ */
+/* $OpenBSD: l2tp_call.c,v 1.18 2015/07/20 19:03:54 yasuoka Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
-/* $Id: l2tp_call.c,v 1.17 2015/06/24 05:20:16 yasuoka Exp $ */
+/* $Id: l2tp_call.c,v 1.18 2015/07/20 19:03:54 yasuoka Exp $ */
/**@file L2TP LNS call */
#include <sys/types.h>
#include <sys/socket.h>
@@ -1047,6 +1047,6 @@ fail:
ppp_destroy(ppp);
_this->ppp = NULL;
- l2tp_call_disconnect(_this, code, 0, NULL, NULL, 0);
+ l2tp_call_disconnect(_this, code, errcode, NULL, NULL, 0);
return 1;
}