Commit 0b161e63 authored by Trond Myklebust's avatar Trond Myklebust

SUNRPC: Fix a missing break in rpc_anyaddr()

The missing break means that we always return EAFNOSUPPORT when
faced with a request for an IPv6 loopback address.

Reported-by: coverity (CID 401987)
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 86fb449b
...@@ -1217,6 +1217,7 @@ static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen) ...@@ -1217,6 +1217,7 @@ static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen)
return -EINVAL; return -EINVAL;
memcpy(buf, &rpc_in6addr_loopback, memcpy(buf, &rpc_in6addr_loopback,
sizeof(rpc_in6addr_loopback)); sizeof(rpc_in6addr_loopback));
break;
default: default:
dprintk("RPC: %s: address family not supported\n", dprintk("RPC: %s: address family not supported\n",
__func__); __func__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment