From 522b9603b56fb06e48ce735c25964a77da1d53af Mon Sep 17 00:00:00 2001 From: "James R. Leu" Date: Sat, 16 Oct 2004 13:33:42 -0600 Subject: [PATCH] We don't need to check the if_handle, we can just check the iff pointer. [git-p4: depot-paths = "//depot/ldp-portable/": change = 957] --- ldp/ldp_session.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ldp/ldp_session.c b/ldp/ldp_session.c index 72b3d36..9b200dc 100644 --- a/ldp/ldp_session.c +++ b/ldp/ldp_session.c @@ -281,9 +281,8 @@ mpls_return_enum ldp_session_startup(ldp_global * g, ldp_session * s) if (g->send_address_messages) { addr = MPLS_LIST_HEAD(&g->addr); while (addr) { - /* only locally attached addrs will have a valid if_handle */ - if (mpls_if_handle_verify(g->ifmgr_handle, addr->if_handle) == - MPLS_BOOL_TRUE) { + /* only locally attached addrs will have a valid iff */ + if (addr->iff) { if (ldp_addr_send(g, s, &addr->address) != MPLS_SUCCESS) goto ldp_session_startup_end; } -- 2.11.4.GIT