commit 26b35449524246778d4a14c3805430797c29c039 Author: Patrick McHardy <kaber@xxxxxxxxx> Date: Fri Jan 18 17:44:52 2008 +0100 [LIBNL]: nfnetlink_log: only set hwproto if not zero The hwproto doesn't have its own attribute and is also present when not set. Don't set the attribute if its value is zero. Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx> diff --git a/lib/netfilter/log.c b/lib/netfilter/log.c index a6bf3d5..a900927 100644 --- a/lib/netfilter/log.c +++ b/lib/netfilter/log.c @@ -86,7 +86,8 @@ struct nfnl_log *nfnlmsg_log_parse(struct nlmsghdr *nlh) if (attr) { struct nfulnl_msg_packet_hdr *hdr = nla_data(attr); - nfnl_log_set_hwproto(log, hdr->hw_protocol); + if (hdr->hw_protocol) + nfnl_log_set_hwproto(log, hdr->hw_protocol); nfnl_log_set_hook(log, hdr->hook); } - To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html