]> git.ozlabs.org Git - ppp.git/commitdiff
Honour the allow-ip option even with noauth
authorPaul Mackerras <paulus@samba.org>
Sun, 16 Feb 2003 22:25:49 +0000 (22:25 +0000)
committerPaul Mackerras <paulus@samba.org>
Sun, 16 Feb 2003 22:25:49 +0000 (22:25 +0000)
pppd/auth.c

index cda341a2f6b266f968df166ede94084912f2db8a..a92d9e93be1869de4a0687c1a0dfd019718414d8 100644 (file)
@@ -73,7 +73,7 @@
  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-#define RCSID  "$Id: auth.c,v 1.90 2002/12/04 23:03:32 paulus Exp $"
+#define RCSID  "$Id: auth.c,v 1.91 2003/02/16 22:25:49 paulus Exp $"
 
 #include <stdio.h>
 #include <stddef.h>
@@ -605,6 +605,9 @@ link_established(unit)
            && protp->lowerup != NULL)
            (*protp->lowerup)(unit);
 
+    if (!auth_required && noauth_addrs != NULL)
+       set_allowed_addrs(unit, NULL, NULL)
+
     if (auth_required && !(go->neg_upap || go->neg_chap || go->neg_eap)) {
        /*
         * We wanted the peer to authenticate itself, and it refused: