diff options
author | Giovanni Bechis <giovanni@cvs.openbsd.org> | 2013-04-06 17:03:52 +0000 |
---|---|---|
committer | Giovanni Bechis <giovanni@cvs.openbsd.org> | 2013-04-06 17:03:52 +0000 |
commit | 889da28d0a89a47093175128e0e57c5c0a9b2544 (patch) | |
tree | 1e2edb16cacb86c3b9ead4885cd3aa24726442d8 /usr.sbin | |
parent | 19d983ca18b0d5ff0ae85a5a84467d25b13d71a5 (diff) |
Turn an error into a warning to be able to start l2tp tunnels even if
gre is not allowed.
ok yasuoka@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/npppd/pptp/pptpd.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/npppd/pptp/pptpd.c b/usr.sbin/npppd/pptp/pptpd.c index 60cd27c6ff6..086a368a4e0 100644 --- a/usr.sbin/npppd/pptp/pptpd.c +++ b/usr.sbin/npppd/pptp/pptpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pptpd.c,v 1.15 2013/03/14 10:21:07 mpi Exp $ */ +/* $OpenBSD: pptpd.c,v 1.16 2013/04/06 17:03:51 giovanni Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -25,12 +25,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -/* $Id: pptpd.c,v 1.15 2013/03/14 10:21:07 mpi Exp $ */ +/* $Id: pptpd.c,v 1.16 2013/04/06 17:03:51 giovanni Exp $ */ /**@file * This file provides a implementation of PPTP daemon. Currently it * provides functions for PAC (PPTP Access Concentrator) only. - * $Id: pptpd.c,v 1.15 2013/03/14 10:21:07 mpi Exp $ + * $Id: pptpd.c,v 1.16 2013/04/06 17:03:51 giovanni Exp $ */ #include <sys/types.h> #include <sys/param.h> @@ -108,8 +108,7 @@ pptpd_init(pptpd *_this) if (sysctl(mib, sizeof(mib)/sizeof(mib[0]), &value, &size, NULL, 0) == 0) { if(value == 0) { - pptpd_log(_this, LOG_ERR, "GRE protocol not allowed"); - return 1; + pptpd_log(_this, LOG_WARNING, "GRE protocol not allowed"); } } |