path: root/src/rule.c
diff options
authorVarsha Rao <>2017-07-19 18:04:07 +0530
committerPablo Neira Ayuso <>2017-07-19 19:24:18 +0200
commit2b261897fa07006e8a46003f8448b69691555314 (patch)
tree0451c11348a48cb299f528f59b46fd965c5021bc /src/rule.c
parent19cd540390e32f2e1f62e205ddb691d1e6e06152 (diff)
src: netlink: Remove variable nf_mon_sock.
Remove variable nf_mon_sock of type structure mnl_socket to avoid duplicity. Instead variable nf_sock of the same type is passed as argument to netlink_monitor(). Also remove netlink_open_mon_sock() function definition, which is no longer required. Suggested-by: Pablo Neira Ayuso <> Signed-off-by: Varsha Rao <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src/rule.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rule.c b/src/rule.c
index 1d89feb9..7f83980c 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -1659,7 +1659,7 @@ static int do_command_monitor(struct netlink_ctx *ctx, struct cmd *cmd)
monhandler.ctx = ctx;
monhandler.loc = &cmd->location;
- return netlink_monitor(&monhandler);
+ return netlink_monitor(&monhandler, ctx->nf_sock);
static int do_command_describe(struct netlink_ctx *ctx, struct cmd *cmd)