Commit 68d157d8 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

loopback: negate netlink error code before we pass it to strerror()

parent cd250a39
...@@ -218,7 +218,7 @@ static int read_response(int fd) { ...@@ -218,7 +218,7 @@ static int read_response(int fd) {
nlmsgerr = NLMSG_DATA(&response.header); nlmsgerr = NLMSG_DATA(&response.header);
if (nlmsgerr->error < 0 && nlmsgerr->error != -EEXIST) { if (nlmsgerr->error < 0 && nlmsgerr->error != -EEXIST) {
log_warning("Netlink failure for request %i: %s", response.header.nlmsg_seq, strerror(nlmsgerr->error)); log_warning("Netlink failure for request %i: %s", response.header.nlmsg_seq, strerror(-nlmsgerr->error));
return nlmsgerr->error; return nlmsgerr->error;
} }
......
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