security/smack: Use AF_INET for sin_family field
[safe/jmp/linux-2.6] / security / smack / smack_lsm.c
index 1c9bdbc..c243a2b 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);