Skip to content

Commit

Permalink
fixup! gcoap: clear uri-query buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
haukepetersen committed Jul 26, 2017
1 parent a093431 commit 479b08b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/net/application_layer/coap/gcoap.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ int gcoap_req_init(coap_pkt_t *pdu, uint8_t *buf, size_t len, unsigned code,

pdu->hdr = (coap_hdr_t *)buf;
memset(pdu->url, 0, NANOCOAP_URL_MAX);
memset(pdu->qs, 0, NANOCOAP_QS_MAX);

/* generate token */
#if GCOAP_TOKENLEN
Expand Down

0 comments on commit 479b08b

Please sign in to comment.