From: Martin Mares Date: Sat, 5 Jun 2004 08:59:17 +0000 (+0000) Subject: Moved the tests for socket existence here. X-Git-Tag: v1.2.0~331 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c33d4cad9fbfb0b2a4b3ee699943d9955bcd9e3e;p=thirdparty%2Fbird.git Moved the tests for socket existence here. BTW, where do you exactly set the new buffer sizes? --- diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index 0cc88cb0a..dffb357af 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) {