missing close()

This commit is contained in:
Mikko Kallio
2018-04-19 02:20:09 +03:00
committed by Dmitry
parent d318d4d0e4
commit 01d6d75f75
+1
View File
@@ -349,6 +349,7 @@ func (p *Conn) checkPrefix() error {
dstIP = data[18:34]
dstPort = binary.BigEndian.Uint16(data[34:36])
} else if transportProtocolAndAddressFamily&addressFamilyUnix == addressFamilyUnix {
p.conn.Close()
return fmt.Errorf("unix protocol not supported")
}