summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2012-11-23 12:10:10 +0100
committerFlorian Westphal <fw@strlen.de>2012-11-25 16:56:48 +0100
commit49dc2251d8d7098b09a4b5a36dafdbd93568f2fc (patch)
tree6ee7c52d0c78c2b10618e19b22a03a7ebfb0c0df /src
parent956a8407175cb72ac18513a43f63331af8b3b744 (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