Commit ca1aa54f authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: xt_LOG: add missing string format in nf_log_packet()

   net/netfilter/xt_LOG.c: In function 'log_tg':
>> net/netfilter/xt_LOG.c:43: error: format not a string literal and no format arguments

Fixes: fab4085f ("netfilter: log: nf_log_packet() as real unified interface")
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent c1878869
...@@ -40,7 +40,7 @@ log_tg(struct sk_buff *skb, const struct xt_action_param *par) ...@@ -40,7 +40,7 @@ log_tg(struct sk_buff *skb, const struct xt_action_param *par)
li.u.log.logflags = loginfo->logflags; li.u.log.logflags = loginfo->logflags;
nf_log_packet(net, par->family, par->hooknum, skb, par->in, par->out, nf_log_packet(net, par->family, par->hooknum, skb, par->in, par->out,
&li, loginfo->prefix); &li, "%s", loginfo->prefix);
return XT_CONTINUE; return XT_CONTINUE;
} }
......
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