[riot-notifications] [RIOT] unbrick send_DAO by checking my_dodag (#360)

Oleg Hahm notifications at github.com
Fri Nov 22 02:05:15 CET 2013


> @@ -345,9 +345,17 @@ void send_DAO(ipv6_addr_t *destination, uint8_t lifetime, bool default_lifetime,
>  
>      mutex_lock(&rpl_send_mutex);
>      rpl_dodag_t *my_dodag;
> -    my_dodag = rpl_get_my_dodag();
> +
> +    if ((my_dodag = rpl_get_my_dodag()) == NULL) {
> +        printf("send_DAO: I have no my_dodag\n");
> +        return;

Should unlock the mutex before returning.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/360/files#r7845352
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20131121/3358515c/attachment.html>


More information about the notifications mailing list