[Coverity] Explicit null dereferenced (FORWARD_NULL)

This commit is contained in:
Peter D. Barnes, Jr.
2013-05-16 11:25:29 -04:00
parent 572eaccd20
commit 2516df45bb

View File

@@ -837,6 +837,7 @@ GlobalRouteManagerImpl::SPFNext (SPFVertex* v, CandidateQueue& candidate)
//
if (v->GetLSA ()->GetLSType () == GlobalRoutingLSA::RouterLSA)
{
NS_ASSERT (l != 0);
distance = v->GetDistanceFromRoot () + l->GetMetric ();
}
else