diff --git a/core/net/rime/stunicast.c b/core/net/rime/stunicast.c index 75b406e9a..1d69b2e20 100644 --- a/core/net/rime/stunicast.c +++ b/core/net/rime/stunicast.c @@ -112,10 +112,10 @@ send(void *ptr) PRINTF("%d.%d: stunicast: resend to %d.%d\n", linkaddr_node_addr.u8[0],linkaddr_node_addr.u8[1], c->receiver.u8[0], c->receiver.u8[1]); - if(c->buf) { - queuebuf_to_packetbuf(c->buf); - unicast_send(&c->c, &c->receiver); - stunicast_set_timer(c, CLOCK_SECOND); + if(c->buf) { + queuebuf_to_packetbuf(c->buf); + unicast_send(&c->c, &c->receiver); + stunicast_set_timer(c, CLOCK_SECOND); } /* if(c->u->sent != NULL) { c->u->sent(c);