mdlayher / raw

Package raw enables reading and writing data at the device driver level for a network interface. MIT Licensed.
MIT License
425 stars 71 forks source link

raw: avoid leaking sock fd if unix.SetNonblock fails in listenPacket #67

Closed tklauser closed 3 years ago

tklauser commented 3 years ago

At this point, the sock fd is not yet wrapped in an *os.File, so it needs to be closed explicitly on error.

tklauser commented 3 years ago

The OpenBSD build failure should be fixed by #68.