net/oic; coap separate response was not using oc_endpoint_size().
@@ -112,7 +112,7 @@ coap_separate_accept(struct coap_packet_rx *coap_req,
return 0;
}
}
- memcpy(&separate_store->endpoint, endpoint, sizeof(oc_endpoint_t));
+ memcpy(&separate_store->endpoint, endpoint, oc_endpoint_size(endpoint));
/* store correct response type */
separate_store->type = COAP_TYPE_NON;
