Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: fix segfault with no /etc/protocols (#286)
This file could be missing, which will cause getprotobynumber() to return NULL. The returned pointer is used to mention the protocol name in a warning message, not critical. Instead, we can simply display 'Unknown' next to the protocol ID. Fixes: d6a48d4 ("tests: Expand mptcpwrap code coverage. (#169)") Reported-by: Aurelien Jarno <[email protected]> Closes: https://bugs.debian.org/1060285 Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
- Loading branch information