summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/auth.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-11-17 00:42:41 +0000
committerbrian <brian@FreeBSD.org>1997-11-17 00:42:41 +0000
commit674fc92d54c1a0eadba4706ec31ac423c35adff7 (patch)
treef5eb6d98e8df8e08a811f9f51b592a74080e9a7d /usr.sbin/ppp/auth.c
parent5696a07f36cde36ef7955344c7b33fc5c7c57248 (diff)
downloadFreeBSD-src-674fc92d54c1a0eadba4706ec31ac423c35adff7.zip
FreeBSD-src-674fc92d54c1a0eadba4706ec31ac423c35adff7.tar.gz
Add id strings to tun.[ch].
Don't try to open ppp.secret if we're never going to use it.
Diffstat (limited to 'usr.sbin/ppp/auth.c')
-rw-r--r--usr.sbin/ppp/auth.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/usr.sbin/ppp/auth.c b/usr.sbin/ppp/auth.c
index a2f328b..1a6758c 100644
--- a/usr.sbin/ppp/auth.c
+++ b/usr.sbin/ppp/auth.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: auth.c,v 1.21 1997/11/09 22:07:27 brian Exp $
+ * $Id: auth.c,v 1.22 1997/11/11 22:58:09 brian Exp $
*
* TODO:
* o Implement check against with registered IP addresses.
@@ -47,19 +47,6 @@
void
LocalAuthInit()
{
- if (*VarShortHost == '\0') {
- char *p;
-
- if (gethostname(VarShortHost, sizeof(VarShortHost))) {
- VarLocalAuth = LOCAL_DENY;
- return;
- }
-
- p = strchr(VarShortHost, '.');
- if (p)
- *p = '\0';
- }
-
if (!(mode&MODE_DAEMON))
/* We're allowed in interactive mode */
VarLocalAuth = LOCAL_AUTH;
OpenPOWER on IntegriCloud