Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/sys/net Pull up revision 1.66 (requested by itojun in t...



details:   https://anonhg.NetBSD.org/src/rev/37573c0481b3
branches:  netbsd-1-6
changeset: 530417:37573c0481b3
user:      grant <grant%NetBSD.org@localhost>
date:      Tue Jun 24 08:18:29 2003 +0000

description:
Pull up revision 1.66 (requested by itojun in ticket #1325):

don't call if_free_sadl() until very end of if_detach() logic.  many of
routing table manipulation code assumes the presense of AF_LINK sockaddr.
should fix PR 21581

diffstat:

 sys/net/if_spppsubr.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 9738f08d5ef7 -r 37573c0481b3 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Tue Jun 24 08:17:57 2003 +0000
+++ b/sys/net/if_spppsubr.c     Tue Jun 24 08:18:29 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.46.4.17 2003/02/07 18:40:19 tron Exp $        */
+/*     $NetBSD: if_spppsubr.c,v 1.46.4.18 2003/06/24 08:18:29 grant Exp $       */
 
 /*
  * Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.46.4.17 2003/02/07 18:40:19 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.46.4.18 2003/06/24 08:18:29 grant Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipx.h"
@@ -997,7 +997,9 @@
        if (sp->hisauth.name) free(sp->hisauth.name, M_DEVBUF);
        if (sp->hisauth.secret) free(sp->hisauth.secret, M_DEVBUF);
 
+#if 0  /* done in if_detach() */
        if_free_sadl(ifp);
+#endif
 }
 
 /*



Home | Main Index | Thread Index | Old Index