Deleted Added
full compact
37c37
< __FBSDID("$FreeBSD: head/sys/security/mac/mac_pipe.c 172930 2007-10-24 19:04:04Z rwatson $");
---
> __FBSDID("$FreeBSD: head/sys/security/mac/mac_pipe.c 182063 2008-08-23 15:26:36Z rwatson $");
71c71,74
< pp->pp_label = mac_pipe_label_alloc();
---
> if (mac_labeled & MPC_OBJECT_PIPE)
> pp->pp_label = mac_pipe_label_alloc();
> else
> pp->pp_label = NULL;
86,87c89,92
< mac_pipe_label_free(pp->pp_label);
< pp->pp_label = NULL;
---
> if (pp->pp_label != NULL) {
> mac_pipe_label_free(pp->pp_label);
> pp->pp_label = NULL;
> }