security/smack: Use AF_INET for sin_family field
[deliverable/linux.git] / security / smack / smack_lsm.c
index 1c9bdbcbe3d2bfbd7c3f83b10c19800c0d7b929e..c243a2b25832acf9db5c226862238203d8a41c68 100644 (file)
@@ -2464,7 +2464,7 @@ static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg,
        /*
         * Perfectly reasonable for this to be NULL
         */
-       if (sip == NULL || sip->sin_family != PF_INET)
+       if (sip == NULL || sip->sin_family != AF_INET)
                return 0;
 
        return smack_netlabel_send(sock->sk, sip);
This page took 0.034016 seconds and 5 git commands to generate.