We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90048b2 commit 32e92b0Copy full SHA for 32e92b0
intra/netstack/fdbased.go
@@ -289,7 +289,8 @@ func (e *endpoint) swap(fd int, force bool) (err error) {
289
f, err := newTun(fd) // fd may be invalid (ex: -1)
290
if err != nil || f == nil {
291
f = invalidFds // nilaway
292
- err = log.EE("ns: tun(%d): swap: err: %v / %v; using invalidfd", fd, err)
+ clos(fd)
293
+ return log.EE("ns: tun(%d): swap: err: %v / %v; using invalidfd", fd, err)
294
}
295
296
e.fds.Store(f) // commence WritePackets() on fd
0 commit comments