From 89f6d533cdaa22c662121a448c4b972ad5e6e82b Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Thu, 27 Mar 2014 13:31:43 +1030 Subject: [PATCH] Don't report error when dropping a packet due to no peers --- overlay_queue.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/overlay_queue.c b/overlay_queue.c index b62d3a19..bc03ca88 100644 --- a/overlay_queue.c +++ b/overlay_queue.c @@ -188,9 +188,11 @@ int overlay_payload_enqueue(struct overlay_frame *p) // just drop it now if (p->destination_count == 0){ - if (config.debug.verbose && config.debug.overlayframes) - DEBUGF("Not transmitting, as we have no neighbours on any interface"); - return -1; + if (config.debug.mdprequests) + DEBUGF("Not transmitting, as we have nowhere to send it"); + // free the packet and return success. + op_free(p); + return 0; } }