From 00f2344b4a947687de7435022b03f6416f51211d Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Tue, 28 Jun 2016 14:59:23 +0200 Subject: [PATCH] RPL insert_srh_header: return success when no SRH is needed because the destination is a direct child --- core/net/rpl/rpl-ext-header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/net/rpl/rpl-ext-header.c b/core/net/rpl/rpl-ext-header.c index 593e7a33f..80de287d9 100644 --- a/core/net/rpl/rpl-ext-header.c +++ b/core/net/rpl/rpl-ext-header.c @@ -378,7 +378,7 @@ insert_srh_header(void) if(node == root_node) { PRINTF("RPL: SRH no need to insert SRH\n"); - return 0; + return 1; } while(node != NULL && node != root_node) {