aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack
diff options
context:
space:
mode:
Diffstat (limited to 'security/smack')
-rw-r--r--security/smack/smack_lsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 1c9bdbcbe3d2..c243a2b25832 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -2464,7 +2464,7 @@ static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg,
2464 /* 2464 /*
2465 * Perfectly reasonable for this to be NULL 2465 * Perfectly reasonable for this to be NULL
2466 */ 2466 */
2467 if (sip == NULL || sip->sin_family != PF_INET) 2467 if (sip == NULL || sip->sin_family != AF_INET)
2468 return 0; 2468 return 0;
2469 2469
2470 return smack_netlabel_send(sock->sk, sip); 2470 return smack_netlabel_send(sock->sk, sip);