aboutsummaryrefslogtreecommitdiff
path: root/sys/security
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2022-08-17 18:50:32 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2022-08-17 18:50:32 +0000
commite7d02be19d40063783d6b8f1ff2bc4c7170fd434 (patch)
treed3ed52ad147947c340a2a5ed090e61e10d7d8eef /sys/security
parentd9f6ac882a9597a660f83bac088a485b42fbba2c (diff)
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/mac/mac_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/mac/mac_socket.c b/sys/security/mac/mac_socket.c
index d55487897522..4b3d6ccfb90c 100644
--- a/sys/security/mac/mac_socket.c
+++ b/sys/security/mac/mac_socket.c
@@ -516,8 +516,8 @@ mac_socket_label_set(struct ucred *cred, struct socket *so,
* from the socket, notify it of the label change while holding the
* socket lock.
*/
- if (so->so_proto->pr_usrreqs->pru_sosetlabel != NULL)
- (so->so_proto->pr_usrreqs->pru_sosetlabel)(so);
+ if (so->so_proto->pr_sosetlabel != NULL)
+ so->so_proto->pr_sosetlabel(so);
return (0);
}