From 479b08b284ef97e94debe63aa16f5cd0b1524e93 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Tue, 25 Jul 2017 11:32:31 +0200 Subject: [PATCH] fixup! gcoap: clear uri-query buffer --- sys/net/application_layer/coap/gcoap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/application_layer/coap/gcoap.c b/sys/net/application_layer/coap/gcoap.c index 0f6eb47dad2c..be21c160a648 100644 --- a/sys/net/application_layer/coap/gcoap.c +++ b/sys/net/application_layer/coap/gcoap.c @@ -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