]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/auth.c
device_script(): dont leak the dup'd in&out fds to scripts.
[ppp.git] / pppd / auth.c
index cda341a2f6b266f968df166ede94084912f2db8a..a4f7775adb6a5ff69ff090e590b7008bf01eb1cd 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.92 2003/02/16 22:29:50 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: