Commit 7e30942b authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Errno handling in kernel.

parent 1c152a25
......@@ -575,7 +575,9 @@ kernel_route(int operation, const unsigned char *dest, unsigned short plen,
if(nl_command.sock < 0) {
rc = netlink_socket(&nl_command, 0);
if(rc < 0) {
int olderrno = errno;
perror("kernel_route: netlink_socket()");
errno = olderrno;
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