From 5daeb1fc6f5a85f09e8b99b5008cd2661c1fc270 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 7 Oct 2012 04:16:44 +0200 Subject: Fix sending of packets with single updates --- ffd/send.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ffd/send.c b/ffd/send.c index c42b642..2121b58 100644 --- a/ffd/send.c +++ b/ffd/send.c @@ -213,11 +213,11 @@ void ffd_send_update(ffd_iface_t *iface, ffd_neigh_t *neigh, ffd_announce_t *ann packet->len = 0; } } + } - if (packet->len) { - if (!send_eth(addr, iface->ifindex, packet, sizeof(ffd_packet_t)+ntohs(packet->len))) - fprintf(stderr, "send_eth: %m\n"); - } + if (packet->len) { + if (!send_eth(addr, iface->ifindex, packet, sizeof(ffd_packet_t)+ntohs(packet->len))) + fprintf(stderr, "send_eth: %m\n"); } } -- cgit v1.2.3