neli: resolve_genl_family hangs if kernel returns NLMSG_ERROR
If the kernel doesn’t have a generic netlink family (such as because the module implementing that family hasn’t been loaded), it’ll return an NLMSG_ERROR message. resolve_genl_family ignores that and proceeds to wait forever for an ack that will never arrive.
I think that recv_nl should be checking for an error.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 15 (15 by maintainers)
Fixed in the 0.4.4 release. Thanks!
For anyone following along, @joshtriplett and I chatted and I’ll be branching a simple fix for the 0.4.0 version. This bug will be resolved completely differently in 0.5.0, but because the refactoring in 0.5.0 is very involved, it will take a bit longer for the next release candidate.