Commit 0d5b693c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix error reporting in kernel_addresses.

parent 05149e2f
......@@ -1160,7 +1160,9 @@ kernel_addresses(struct kernel_route *routes, int maxroutes)
if (nl_command.sock < 0) {
rc = netlink_socket(&nl_command, 0);
if (rc < 0) {
int save = errno;
perror("kernel_addresses: netlink_socket()");
errno = save;
return -1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment