diff options
author | kp <kp@FreeBSD.org> | 2016-08-17 09:24:46 +0000 |
---|---|---|
committer | kp <kp@FreeBSD.org> | 2016-08-17 09:24:46 +0000 |
commit | 26d31e281678303d3071eb6fbac74b22036f44c5 (patch) | |
tree | cf23129933cf5ccb5d91ca4646030c027a4e7cb9 /lib/libc/gen/glob.c | |
parent | a4a505a3644b1e237d64ebdb723521122359ee90 (diff) | |
download | FreeBSD-src-26d31e281678303d3071eb6fbac74b22036f44c5.zip FreeBSD-src-26d31e281678303d3071eb6fbac74b22036f44c5.tar.gz |
MFC r302497:
pf: Map hook returns onto the correct error values
pf returns PF_PASS, PF_DROP, ... in the netpfil hooks, but the hook callers
expect to get E<foo> error codes.
Map the returns values. A pass is 0 (everything is OK), anything else means
pf ate the packet, so return EACCES, which tells the stack not to emit an ICMP
error message.
PR: 207598
Diffstat (limited to 'lib/libc/gen/glob.c')
0 files changed, 0 insertions, 0 deletions