diff options
author | Florian Westphal <fw@strlen.de> | 2012-11-23 12:10:10 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2012-11-25 16:56:48 +0100 |
commit | 49dc2251d8d7098b09a4b5a36dafdbd93568f2fc (patch) | |
tree | 6ee7c52d0c78c2b10618e19b22a03a7ebfb0c0df /src | |
parent | 956a8407175cb72ac18513a43f63331af8b3b744 (diff) |
examples: nf-queue: fix api usage
1. struct nlattr *attr[NFQA_MAX+1] must be initialized.
Otherwise, attr[FOO] might be non-null after parsing
even if that attribute isn't present in the message.
2. mnl_attr_get_payload will never return NULL (if the
attribute is NULL, it returns MNL_ATTR_HDRLEN.)
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions