[BACK]Return to route.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / net

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/net/route.c between version 1.106 and 1.107

version 1.106, 2008/03/26 14:54:19 version 1.107, 2008/04/10 18:12:02
Line 1260  rtcache_free(struct route *ro)
Line 1260  rtcache_free(struct route *ro)
         if (ro->ro_sa != NULL) {          if (ro->ro_sa != NULL) {
                 sockaddr_free(ro->ro_sa);                  sockaddr_free(ro->ro_sa);
                 ro->ro_sa = NULL;                  ro->ro_sa = NULL;
                   KASSERT(ro->_ro_rt == NULL);
         }          }
 }  }
   
Line 1276  rtcache_setdst(struct route *ro, const s
Line 1277  rtcache_setdst(struct route *ro, const s
         } else if (ro->ro_sa != NULL)          } else if (ro->ro_sa != NULL)
                 rtcache_free(ro);       /* free ro_sa, wrong family */                  rtcache_free(ro);       /* free ro_sa, wrong family */
   
         if ((ro->ro_sa = sockaddr_dup(sa, M_NOWAIT)) == NULL)          KASSERT(ro->_ro_rt == NULL);
   
           if ((ro->ro_sa = sockaddr_dup(sa, M_NOWAIT)) == NULL) {
                 return ENOMEM;                  return ENOMEM;
           }
         return 0;          return 0;
 }  }
   

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.107

CVSweb <webmaster@jp.NetBSD.org>