--- a/src/routing/static-route-manager.cc Fri Jul 13 14:05:12 2007 -0700
+++ b/src/routing/static-route-manager.cc Fri Jul 13 14:35:24 2007 -0700
@@ -145,7 +145,11 @@
Ptr<StaticRouter> rtr =
node->QueryInterface<StaticRouter> (StaticRouter::iid);
- NS_ASSERT_MSG(rtr, "QI for <StaticRouter> interface failed");
+
+ if (!rtr)
+ {
+ continue;
+ }
// You must call DiscoverLSAs () before trying to use any
// routing info or to update LSAs. Subsequently you may use
@@ -208,7 +212,7 @@
Ptr<StaticRouter> rtr =
node->QueryInterface<StaticRouter> (StaticRouter::iid);
- NS_ASSERT_MSG(rtr, "QI for <StaticRouter> interface failed");
+
if (rtr && rtr->GetNumLSAs () )
{
SPFCalculate(rtr->GetRouterId ());