Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33344
b: refs/heads/master
c: dcb7cd9
h: refs/heads/master
v: v3
  • Loading branch information
Mark Huang authored and David S. Miller committed Aug 14, 2006
1 parent cca5cbe commit d10f909
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0eff66e625306a794ecba4b29ed12f7a147ce219
refs/heads/master: dcb7cd97f133f7cfbd181149a1e60215a869f895
3 changes: 3 additions & 0 deletions trunk/net/bridge/netfilter/ebt_ulog.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ static void ulog_send(unsigned int nlgroup)
if (timer_pending(&ub->timer))
del_timer(&ub->timer);

if (!ub->skb)
return;

/* last nlmsg needs NLMSG_DONE */
if (ub->qlen > 1)
ub->lastnlh->nlmsg_type = NLMSG_DONE;
Expand Down
5 changes: 5 additions & 0 deletions trunk/net/ipv4/netfilter/ipt_ULOG.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ static void ulog_send(unsigned int nlgroupnum)
del_timer(&ub->timer);
}

if (!ub->skb) {
DEBUGP("ipt_ULOG: ulog_send: nothing to send\n");
return;
}

/* last nlmsg needs NLMSG_DONE */
if (ub->qlen > 1)
ub->lastnlh->nlmsg_type = NLMSG_DONE;
Expand Down
3 changes: 3 additions & 0 deletions trunk/net/netfilter/nfnetlink_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,9 @@ __nfulnl_send(struct nfulnl_instance *inst)
if (timer_pending(&inst->timer))
del_timer(&inst->timer);

if (!inst->skb)
return 0;

if (inst->qlen > 1)
inst->lastnlh->nlmsg_type = NLMSG_DONE;

Expand Down

0 comments on commit d10f909

Please sign in to comment.