]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/auth.c
changes to linux interface for new kernel driver,
[ppp.git] / pppd / auth.c
index 83b0e0683be9e8f96116c3b9de46e4de73c78e40..3d466e2e52fa097f95b72dac09ab50d4d71a9ea1 100644 (file)
@@ -32,7 +32,7 @@
  * 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.62 2000/03/27 06:02:59 paulus Exp $"
 
 #include <stdio.h>
 #include <stddef.h>
@@ -509,6 +509,7 @@ start_networks()
     struct protent *protp;
 
     new_phase(PHASE_NETWORK);
+
 #if 0
     if (!demand)
        set_filters(&pass_filter, &active_filter);
@@ -1570,7 +1571,7 @@ auth_ip_addr(unit, addr)
     }
     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