buffrr / letsdane

🔒 Let's DANE is an experimental way to enable the use of DANE/TLSA in browsers and other apps using a lightweight proxy.
Apache License 2.0
111 stars 11 forks source link

Panic during startup when starting proxy with an unsupported resolver (libunbound) #12

Closed buffrr closed 3 years ago

buffrr commented 3 years ago

unbound doesn't support DoH so a common error is:

$ letsdane -r https://1.1.1.1

This crashes with

panic: runtime error: invalid memory address or nil pointer dereference

Since it tries to clean up the unbound instance even though it has not been created yet. It should show the actual error given by libunbound instead.