Skip to content

Commit c9870a8

Browse files
committed
Directly return on empty response from DNS64 trampoline query
1 parent 05e4a73 commit c9870a8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

dnscrypt-proxy/plugin_dns64.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ func (plugin *PluginDNS64) Eval(pluginsState *PluginsState, msg *dns.Msg) error
103103
false,
104104
)
105105
plugin.proxy.clientsCountDec()
106+
107+
if len(respPacket) == 0 {
108+
return errors.New("Empty response from DNS64 trampoline query")
109+
}
110+
106111
resp := dns.Msg{}
107112
if err := resp.Unpack(respPacket); err != nil {
108113
return err

0 commit comments

Comments
 (0)