You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function setUDPSocketOptions above operates on an already-opened UDPConn, so if an error caused an abort action there, the UDPConn must be closed before doing return e.
I think the code should be:
u := l.(*net.UDPConn)
if e := setUDPSocketOptions(u); e != nil {
u.Close() // Maybe handle this error too? No?
return e
}
The text was updated successfully, but these errors were encountered:
Hi all :D
I'm just reading the source code, and discovered a small potential problem here:
dns/server.go
Line 323 in 67bd57d
The function
setUDPSocketOptions
above operates on an already-opened UDPConn, so if an error caused an abort action there, the UDPConn must be closed before doingreturn e
.I think the code should be:
The text was updated successfully, but these errors were encountered: