mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
`coap_request_ctx_get_local()` may return `NULL` depending on module selection. If it does, we cannot pass `NULL` to `sock_udp_ep_is_multicast()`. This changes the code assume the request is not received via multicast when module `sock_aux_local` is not in use. When the user binds the CoAP server to multiple endpoints (as needed for using multicast), it is required that `sock_aux_local` is in use anyway, as otherwise the server may not respond using the endpoint it received the request on. (That in turn would render the client unable to correlate the response to the request.)