diff options
Diffstat (limited to 'net/core/sock.c')
-rw-r--r-- | net/core/sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index c7e60eac639b..679c5bbe2bed 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -561,7 +561,7 @@ int sock_setsockopt(struct socket *sock, int level, int optname, | |||
561 | sock_valbool_flag(sk, SOCK_DBG, valbool); | 561 | sock_valbool_flag(sk, SOCK_DBG, valbool); |
562 | break; | 562 | break; |
563 | case SO_REUSEADDR: | 563 | case SO_REUSEADDR: |
564 | sk->sk_reuse = valbool; | 564 | sk->sk_reuse = (valbool ? SK_CAN_REUSE : SK_NO_REUSE); |
565 | break; | 565 | break; |
566 | case SO_TYPE: | 566 | case SO_TYPE: |
567 | case SO_PROTOCOL: | 567 | case SO_PROTOCOL: |