summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-10-07 04:23:17 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-10-07 04:23:17 +0200
commit4334011653c004f8f8925342bc81e109452cbcae (patch)
tree078c3de14a10aa7f09389701afeda9871c236c27
parent5daeb1fc6f5a85f09e8b99b5008cd2661c1fc270 (diff)
downloadffd-4334011653c004f8f8925342bc81e109452cbcae.tar
ffd-4334011653c004f8f8925342bc81e109452cbcae.zip
Fix sending of long updates
-rw-r--r--ffd/send.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffd/send.c b/ffd/send.c
index 2121b58..62b0a74 100644
--- a/ffd/send.c
+++ b/ffd/send.c
@@ -211,6 +211,11 @@ void ffd_send_update(ffd_iface_t *iface, ffd_neigh_t *neigh, ffd_announce_t *ann
node_id = FFD_NODE_ID_UNSPEC;
packet->len = 0;
+
+ if (!add_update(packet, FFD_PACKET_MAX, &node_id, a, with_data)) {
+ fprintf(stderr, "error: add_update failed\n");
+ return;
+ }
}
}
}