diff options
Diffstat (limited to 'security/smack')
-rw-r--r-- | security/smack/smack_lsm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index fd20d15f5b9a..23ad420a49aa 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c | |||
@@ -1387,7 +1387,7 @@ static int smack_netlabel(struct sock *sk, int labeled) | |||
1387 | else { | 1387 | else { |
1388 | netlbl_secattr_init(&secattr); | 1388 | netlbl_secattr_init(&secattr); |
1389 | smack_to_secattr(ssp->smk_out, &secattr); | 1389 | smack_to_secattr(ssp->smk_out, &secattr); |
1390 | rc = netlbl_sock_setattr(sk, &secattr); | 1390 | rc = netlbl_sock_setattr(sk, sk->sk_family, &secattr); |
1391 | netlbl_secattr_destroy(&secattr); | 1391 | netlbl_secattr_destroy(&secattr); |
1392 | } | 1392 | } |
1393 | 1393 | ||