]> git.ozlabs.org Git - ppp.git/commitdiff
fix up NAK processing for old ADDRS option
authorPaul Mackerras <paulus@samba.org>
Mon, 10 Oct 1994 01:59:17 +0000 (01:59 +0000)
committerPaul Mackerras <paulus@samba.org>
Mon, 10 Oct 1994 01:59:17 +0000 (01:59 +0000)
pppd/ipcp.c

index 37d62c694ab69f9021c112d4289cf873e7efcdc4..2735e50d9b3f82228b513e0dfc43d21eadc60bad 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: ipcp.c,v 1.11 1994/09/21 06:47:37 paulus Exp $";
+static char rcsid[] = "$Id: ipcp.c,v 1.12 1994/10/10 01:59:17 paulus Exp $";
 #endif
 
 /*
 #endif
 
 /*
@@ -493,7 +493,7 @@ ipcp_nakci(f, p, len)
      * Accept the peer's idea of {our,his} address, if different
      * from our idea, only if the accept_{local,remote} flag is set.
      */
      * Accept the peer's idea of {our,his} address, if different
      * from our idea, only if the accept_{local,remote} flag is set.
      */
-    NAKCIADDR(CI_ADDR, neg_addr, go->old_addrs,
+    NAKCIADDR((go->old_addrs? CI_ADDRS: CI_ADDR), neg_addr, go->old_addrs,
              if (go->accept_local && ciaddr1) { /* Do we know our address? */
                  try.ouraddr = ciaddr1;
                  IPCPDEBUG((LOG_INFO, "local IP address %s",
              if (go->accept_local && ciaddr1) { /* Do we know our address? */
                  try.ouraddr = ciaddr1;
                  IPCPDEBUG((LOG_INFO, "local IP address %s",