Commit 943865d9 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Warn when kernel_addresses fails.

parent cd2c3bfd
......@@ -282,6 +282,9 @@ main(int argc, char **argv)
} else {
struct kernel_route routes[240];
rc = kernel_addresses(routes, 240);
if(rc < 0) {
perror("kernel_addresses");
}
if(rc > 0) {
/* Search for a global IPv6 address */
for(i = 0; i < rc; i++) {
......
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