diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-30 18:14:06 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-30 18:14:06 -0500 |
commit | 0b161e6330e27c191a0ff0d44082ff7832a8c8a1 (patch) | |
tree | b863a5e685b47fed03154ec34a0e655550d3362d /net | |
parent | 86fb449b07b8215443a30782dca5755d5b8b0577 (diff) |
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: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/clnt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 23608eb0ded2..b7f21044f4d8 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c | |||
@@ -1217,6 +1217,7 @@ static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen) | |||
1217 | return -EINVAL; | 1217 | return -EINVAL; |
1218 | memcpy(buf, &rpc_in6addr_loopback, | 1218 | memcpy(buf, &rpc_in6addr_loopback, |
1219 | sizeof(rpc_in6addr_loopback)); | 1219 | sizeof(rpc_in6addr_loopback)); |
1220 | break; | ||
1220 | default: | 1221 | default: |
1221 | dprintk("RPC: %s: address family not supported\n", | 1222 | dprintk("RPC: %s: address family not supported\n", |
1222 | __func__); | 1223 | __func__); |