Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14993
b: refs/heads/master
c: 3ebbe0c
h: refs/heads/master
i:
  14991: ec9790f
v: v3
  • Loading branch information
Yasuyuki Kozakai authored and David S. Miller committed Dec 5, 2005
1 parent ebf6ae3 commit ef2a316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f16c910724250c1af0f53111b4c76505000819f6
refs/heads/master: 3ebbe0cdd41f62e5c79cb4d7aa42a1ca50d7d2f2
5 changes: 2 additions & 3 deletions trunk/net/netfilter/nfnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ nfnetlink_check_attributes(struct nfnetlink_subsystem *subsys,
return -EINVAL;
}

min_len = NLMSG_ALIGN(sizeof(struct nfgenmsg));
min_len = NLMSG_SPACE(sizeof(struct nfgenmsg));
if (unlikely(nlh->nlmsg_len < min_len))
return -EINVAL;

Expand Down Expand Up @@ -236,8 +236,7 @@ static inline int nfnetlink_rcv_msg(struct sk_buff *skb,
}

/* All the messages must at least contain nfgenmsg */
if (nlh->nlmsg_len <
NLMSG_LENGTH(NLMSG_ALIGN(sizeof(struct nfgenmsg)))) {
if (nlh->nlmsg_len < NLMSG_SPACE(sizeof(struct nfgenmsg))) {
DEBUGP("received message was too short\n");
return 0;
}
Expand Down

0 comments on commit ef2a316

Please sign in to comment.