mosajjal / sniproxy

SNI Proxy with Embedded DNS Server
BSD 2-Clause "Simplified" License
177 stars 38 forks source link

Check before dereferencing dnsc res.Answer #121

Closed moh53n closed 3 months ago

moh53n commented 3 months ago

In some cases, res is nil which causes panic while returning res.Answer. This will make sure res is not nil.

mosajjal commented 3 months ago

lgtm. thanks!