commit | c3724e4bc3a6c40dc846f0c3b02934d711bf81fb | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Mon Aug 21 16:46:51 2017 +0200 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Mon Aug 21 17:35:07 2017 -0700 |
tree | 853d064ed6f86f52ead19c3c119da62a09bc818c | |
parent | 6e33f7b0f6e04dd46bea24c3ab28d61e54625dd7 [diff] |
lib/bpf: Don't leak fp in bpf_find_mntpt() If fopen() succeeded but len != PATH_MAX, the function leaks the open FILE pointer. Fix this by checking len value before calling fopen(). Signed-off-by: Phil Sutter <phil@nwl.cc> Acked-by: Daniel Borkmann <daniel@iogearbox.net>