]> git.ozlabs.org Git - ppp.git/commitdiff
don't require authentication by default if privileged, even if we
authorPaul Mackerras <paulus@samba.org>
Mon, 13 Mar 2000 23:25:46 +0000 (23:25 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 13 Mar 2000 23:25:46 +0000 (23:25 +0000)
have a default route already.

pppd/auth.c

index 83b0e0683be9e8f96116c3b9de46e4de73c78e40..4dfcb4382bdb2801e141ae6116bb84beeb3d956f 100644 (file)
@@ -32,7 +32,7 @@
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
-#define RCSID  "$Id: auth.c,v 1.60 1999/12/23 01:25:13 paulus Exp $"
+#define RCSID  "$Id: auth.c,v 1.61 2000/03/13 23:25:46 paulus Exp $"
 
 #include <stdio.h>
 #include <stddef.h>
 
 #include <stdio.h>
 #include <stddef.h>
@@ -1570,7 +1570,7 @@ auth_ip_addr(unit, addr)
     }
     if (auth_required)
        return 0;               /* no addresses authorized */
     }
     if (auth_required)
        return 0;               /* no addresses authorized */
-    return allow_any_ip || !have_route_to(addr);
+    return allow_any_ip || privileged || !have_route_to(addr);
 }
 
 static int
 }
 
 static int