1
0
Fork 0

Always send an address in the reply, set to zero

logger
Armon Dadgar 2014-01-24 14:20:55 -08:00
parent c9813fbde2
commit 4d1f2ce7ad
1 changed files with 3 additions and 2 deletions

View File

@ -260,8 +260,9 @@ func sendReply(w io.Writer, resp uint8, addr *AddrSpec) error {
var addrPort uint16
switch {
case addr == nil:
addrType = 0
addrBody = nil
addrType = ipv4Address
addrBody = []byte{0, 0, 0, 0}
addrPort = 0
case addr.FQDN != "":
addrType = fqdnAddress