In r343631 error code for a packet blocked by a firewall was

changed from EACCES to EPERM.  This change was not intentional,
so fix that.  Return EACCESS if a firewall forbids sending.

Noticed by:	ae
This commit is contained in:
Gleb Smirnoff 2020-01-01 17:32:20 +00:00
parent 8d5c56dab1
commit e00ee1a9f4

View File

@ -898,7 +898,7 @@ again:
ip6 = mtod(m, struct ip6_hdr *);
break;
case PFIL_DROPPED:
error = EPERM;
error = EACCES;
/* FALLTHROUGH */
case PFIL_CONSUMED:
goto done;