diff --git a/os/net/rpl-classic/rpl-ext-header.c b/os/net/rpl-classic/rpl-ext-header.c index aa0260aae..0c1f8076a 100644 --- a/os/net/rpl-classic/rpl-ext-header.c +++ b/os/net/rpl-classic/rpl-ext-header.c @@ -410,7 +410,7 @@ insert_srh_header(void) /* Check if there is enough space to store the extension header */ if(uip_len + ext_len > UIP_BUFSIZE) { PRINTF("RPL: Packet too long: impossible to add source routing header (%u bytes)\n", ext_len); - return 1; + return 0; } /* Move existing ext headers and payload uip_ext_len further */ diff --git a/os/net/rpl-lite/rpl-ext-header.c b/os/net/rpl-lite/rpl-ext-header.c index 878797c8b..ca3c2164f 100644 --- a/os/net/rpl-lite/rpl-ext-header.c +++ b/os/net/rpl-lite/rpl-ext-header.c @@ -302,7 +302,7 @@ insert_srh_header(void) /* Check if there is enough space to store the extension header */ if(uip_len + ext_len > UIP_BUFSIZE) { LOG_ERR("packet too long: impossible to add source routing header (%u bytes)\n", ext_len); - return 1; + return 0; } /* Move existing ext headers and payload uip_ext_len further */