From 83f2b0a131818e0f1c1f7faa57f558d68d8c80c3 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 24 Jun 2016 09:38:06 +0200 Subject: [PATCH] examples/microcoap_server: fix .well-known/core endpoint --- examples/microcoap_server/coap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/microcoap_server/coap.c b/examples/microcoap_server/coap.c index 5fe8a0a505..8e42c478c2 100644 --- a/examples/microcoap_server/coap.c +++ b/examples/microcoap_server/coap.c @@ -43,6 +43,8 @@ static int handle_get_well_known_core(coap_rw_buffer_t *scratch, uint8_t id_hi, uint8_t id_lo) { char *rsp = (char *)response; + /* resetting the content of response message */ + memset(response, 0, sizeof(response)); int len = sizeof(response); const coap_endpoint_t *ep = endpoints; int i;