diff options
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r-- | net/sunrpc/svcsock.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 943f2a745cd5..9b6703588e35 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
@@ -391,9 +391,12 @@ static void svc_sock_setbufsize(struct socket *sock, unsigned int snd, | |||
391 | release_sock(sock->sk); | 391 | release_sock(sock->sk); |
392 | } | 392 | } |
393 | 393 | ||
394 | static int svc_sock_secure_port(struct svc_rqst *rqstp) | 394 | static void svc_sock_secure_port(struct svc_rqst *rqstp) |
395 | { | 395 | { |
396 | return svc_port_is_privileged(svc_addr(rqstp)); | 396 | if (svc_port_is_privileged(svc_addr(rqstp))) |
397 | set_bit(RQ_SECURE, &rqstp->rq_flags); | ||
398 | else | ||
399 | clear_bit(RQ_SECURE, &rqstp->rq_flags); | ||
397 | } | 400 | } |
398 | 401 | ||
399 | /* | 402 | /* |