diff options
author | Patrick McHardy <kaber@trash.net> | 2014-03-07 10:57:08 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-03-07 10:57:08 +0100 |
commit | 8ad2f12a68e0e1304ec29fac274c0a0165915e2c (patch) | |
tree | fe36ad340adf6c1dc98f550bb7afd626375c6409 | |
parent | cbeb5df0a202f07e84db32d4015026b3d3f3c892 (diff) |
netlink: use set location for IO errors
We currently crash when reporting a permission denied error for set additions.
This is due to using the wrong location, fix by passing in the set location.
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | src/netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c index b2bd3c5c..daac64ca 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -777,7 +777,7 @@ int netlink_add_set(struct netlink_ctx *ctx, const struct handle *h, err = mnl_nft_set_add(nf_sock, nls, NLM_F_EXCL | NLM_F_ECHO); if (err < 0) - netlink_io_error(ctx, NULL, "Could not add set: %s", + netlink_io_error(ctx, &set->location, "Could not add set: %s", strerror(errno)); set->handle.set = |