path: root/
diff options
authorFlorian Westphal <>2013-07-11 22:41:20 +0200
committerFlorian Westphal <>2013-07-11 22:47:18 +0200
commit05296fdd86e92722ee667e87c33156bd8bea33f0 (patch)
tree7e110e336fa840fabaa2b30072f704490ee1206a /
parent6c2daa7dbb5834776c024783fbc9032298ef45a4 (diff)
conntrack: labels: labelmap_new: make sure errno is 0 when no labels are found
nfct_labelmap_new returns NULL on failure, e.g. when file cannot be opened. It will also fail if no labels have been parsed, and in this case, content of errno is random. Avoid it by making sure that errno is re-set when no labels were found. While at it, also change ptr test when parsing so reviewers don't need to triple check that this cannot result in out-of-bounds read. Reported-by: Afschin Hormozdiary <> Signed-off-by: Florian Westphal <>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions