diff options
author | amurai <amurai@FreeBSD.org> | 1995-02-27 10:57:54 +0000 |
---|---|---|
committer | amurai <amurai@FreeBSD.org> | 1995-02-27 10:57:54 +0000 |
commit | f599fa5e62e57f67d51a1328623c6685df76eee0 (patch) | |
tree | f860ae50f7cb940e267b2689240b5031148b2153 /usr.sbin/ppp/auth.c | |
parent | 9c085a7dcf54c4a67570f27311b48f040a7d2361 (diff) | |
download | FreeBSD-src-f599fa5e62e57f67d51a1328623c6685df76eee0.zip FreeBSD-src-f599fa5e62e57f67d51a1328623c6685df76eee0.tar.gz |
Fixing minor bug and allow help(Not for all command) and quit
but not close line connection by "quit all" command if not
authorized.
Reviewed by: amurai@spec.co.jp
Submitted by: tony-o@iij.ad.jp amurai@spec.co.jp
Diffstat (limited to 'usr.sbin/ppp/auth.c')
-rw-r--r-- | usr.sbin/ppp/auth.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/auth.c b/usr.sbin/ppp/auth.c index 1bd6e2e..a125abc 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:$ + * $Id: auth.c,v 1.2 1995/02/26 12:17:12 amurai Exp $ * * TODO: * o Imprement check against with registerd IP addresses. @@ -35,13 +35,14 @@ LOCAL_AUTH_VALID LocalAuthInit(void){ char *p; - + if ( gethostname( VarShortHost, sizeof(VarShortHost))) { - return(1); + return(NOT_FOUND); } if ( p = strchr( VarShortHost, '.' ) ) *p = '\0'; + VarLocalAuth = LOCAL_NO_AUTH; return LocalAuthValidate( SECRETFILE, VarShortHost, "" ); } |