Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Close socket immediately after error in if_nametoindex()
Immediately close the socket used internally by syscall.util.if_nametoindex(), right after the lower-level implementation call notifies of an error. This avoids letting the socket be garbage-collected later on.
- Loading branch information