]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Moved the tests for socket existence here.
authorMartin Mares <mj@ucw.cz>
Sat, 5 Jun 2004 08:59:17 +0000 (08:59 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 5 Jun 2004 08:59:17 +0000 (08:59 +0000)
BTW, where do you exactly set the new buffer sizes?

proto/ospf/iface.c

index 0cc88cb0a76bfb1d2e8eda08caa1edb48c6913bd..dffb357af4512960c03484fb155210d1268c07c6 100644 (file)
@@ -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)
       {