diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2009-06-03 19:41:12 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2009-06-03 19:41:12 +0000 |
| commit | 3ad3d9c5ef2ef66ac2a019662eaadcb30d7c9044 (patch) | |
| tree | 1fd78c1fda6cda27c4b38950caa54e876da4141c /sys/security | |
| parent | 506a380d0f71dae60f150ca9e8b52c3b1d1a2d6d (diff) | |
Notes
Diffstat (limited to 'sys/security')
| -rw-r--r-- | sys/security/mac/mac_net.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/security/mac/mac_net.c b/sys/security/mac/mac_net.c index 73154148b9a7..ed3388573bd7 100644 --- a/sys/security/mac/mac_net.c +++ b/sys/security/mac/mac_net.c @@ -258,6 +258,9 @@ mac_mbuf_copy(struct mbuf *m_from, struct mbuf *m_to) { struct label *src_label, *dest_label; + if (mac_policy_count == 0) + return; + src_label = mac_mbuf_to_label(m_from); dest_label = mac_mbuf_to_label(m_to); |
