summaryrefslogtreecommitdiffstats
path: root/proto/ospf
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2004-06-05 10:59:17 +0200
committerMartin Mares <mj@ucw.cz>2004-06-05 10:59:17 +0200
commitc33d4cad9fbfb0b2a4b3ee699943d9955bcd9e3e (patch)
tree0bd8f6257e815536eeb6ce47599598885778e1d8 /proto/ospf
parent4da25acb0ab964826f133025493a9b80d8bef509 (diff)
downloadbird-c33d4cad9fbfb0b2a4b3ee699943d9955bcd9e3e.tar
bird-c33d4cad9fbfb0b2a4b3ee699943d9955bcd9e3e.zip
Moved the tests for socket existence here.
BTW, where do you exactly set the new buffer sizes?
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/iface.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 0cc88cb..dffb357 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -433,9 +433,12 @@ ospf_if_notify(struct proto *p, unsigned flags, struct iface *iface)
struct ospf_packet *op;
struct ospf_neighbor *n;
OSPF_TRACE(D_EVENTS, "Changing MTU on interface %s.", iface->name);
- sk_reallocate(ifa->hello_sk);
- sk_reallocate(ifa->dr_sk);
- sk_reallocate(ifa->ip_sk);
+ if (ifa->hello_sk)
+ sk_reallocate(ifa->hello_sk);
+ if (ifa->dr_sk)
+ sk_reallocate(ifa->dr_sk);
+ if (ifa->ip_sk)
+ sk_reallocate(ifa->ip_sk);
WALK_LIST(n,ifa->neigh_list)
{