mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
When determing whether to do a re-transmit timeout based on coap_dtls_get_timeout, if s->tls is not set (unable to set up TLS session, TLS error etc.), then coap_write() assert's when calling coap_dtls_get_timeout(). This fix just sets the timeout to 0 if s->tls is not set.