]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Print an error message if dtls_addr is NULL in dtls_setup()
authorDaniel Lenski <dlenski@gmail.com>
Fri, 28 May 2021 19:50:51 +0000 (12:50 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Fri, 28 May 2021 19:50:51 +0000 (12:50 -0700)
commit828966dae38a6f3961b8681734e463fb162e1c80
tree581d98bf16f7af779480dc51f33b3d4a920d3778
parent200de700b70d00c6c302b004d27bcadbbf133ca6
Print an error message if dtls_addr is NULL in dtls_setup()

This should reduce confusion and help debugging in situations like #242,
where a Cisco server apparently does not return any 'X-DTLS-*' headers upon
connection.

We were printing this message in connect_dtls_socket(), but since
dtls_setup() gets called — and fails — *first* in that case, the message
never got printed.

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
dtls.c