summaryrefslogtreecommitdiffstats
path: root/isisd/isis_circuit.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-09-26 21:53:47 +0200
committerhasso <hasso>2004-09-26 21:53:47 +0200
commit0dae85e67ada6044ce895b3e64a3a223776eab5b (patch)
tree8cc72db376fbf4f046d1fc5c084b41cfc8d54d4c /isisd/isis_circuit.c
parentCompiler warning fix. (diff)
downloadfrr-0dae85e67ada6044ce895b3e64a3a223776eab5b.tar.xz
frr-0dae85e67ada6044ce895b3e64a3a223776eab5b.zip
Brown paperbag please. Fix previous commit.
Diffstat (limited to 'isisd/isis_circuit.c')
-rw-r--r--isisd/isis_circuit.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c
index 2dbdba3eb..3669cf437 100644
--- a/isisd/isis_circuit.c
+++ b/isisd/isis_circuit.c
@@ -241,7 +241,8 @@ isis_circuit_add_addr (struct isis_circuit *circuit,
ipv4->prefixlen = connected->address->prefixlen;
ipv4->prefix = connected->address->u.prefix4;
listnode_add (circuit->ip_addrs, ipv4);
- lsp_regenerate_schedule (circuit->area);
+ if (circuit->area)
+ lsp_regenerate_schedule (circuit->area);
#ifdef EXTREME_DEBUG
prefix2str (connected->address, buf, BUFSIZ);
@@ -260,8 +261,8 @@ isis_circuit_add_addr (struct isis_circuit *circuit,
listnode_add (circuit->ipv6_link, ipv6);
else
listnode_add (circuit->ipv6_non_link, ipv6);
-
- lsp_regenerate_schedule (circuit->area);
+ if (circuit->area)
+ lsp_regenerate_schedule (circuit->area);
#ifdef EXTREME_DEBUG
prefix2str (connected->address, buf, BUFSIZ);
@@ -302,7 +303,8 @@ isis_circuit_del_addr (struct isis_circuit *circuit,
if (ip)
{
listnode_delete (circuit->ip_addrs, ip);
- lsp_regenerate_schedule (circuit->area);
+ if (circuit->area)
+ lsp_regenerate_schedule (circuit->area);
}
else
{
@@ -354,7 +356,8 @@ isis_circuit_del_addr (struct isis_circuit *circuit,
circuit %d", buf, circuit->circuit_id);
}
else
- lsp_regenerate_schedule (circuit->area);
+ if (circuit->area)
+ lsp_regenerate_schedule (circuit->area);
}
#endif /* HAVE_IPV6 */
return;