if ((fec->handle == m->handle) || (fec->handle == m->static_handle))
continue;
+ /* Consistency check: static policy requires static handle to exist */
+ if (!m->static_handle)
+ ASSERT_DIE(fec->policy != MPLS_POLICY_STATIC);
+
/* Try new handle for the FEC */
struct mpls_handle_pub *new_pub = (fec->policy != MPLS_POLICY_STATIC) ? m->handle : m->static_handle;
struct mpls_handle *new = MPLS_HANDLE_PRIV(new_pub);