Skip to content

Commit

Permalink
fixup! fixup! nanocoap: rework option handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Mar 14, 2018
1 parent fa2b04d commit 7a32be1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/net/application_layer/nanocoap/nanocoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ int coap_get_uri(coap_pkt_t *pkt, uint8_t *target)
uint8_t *opt_pos = coap_find_option(pkt, COAP_OPT_URI_PATH);
if (!opt_pos) {
DEBUG("nanocoap: no COAP_OPT_URI_PATH option\n");
*target = '\0';
return -EBADMSG;
}

Expand Down

0 comments on commit 7a32be1

Please sign in to comment.