Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1217,6 +1217,7 @@ static int rpc_anyaddr(int family, struct sockaddr *buf, size_t buflen)
			return -EINVAL;
		memcpy(buf, &rpc_in6addr_loopback,
				sizeof(rpc_in6addr_loopback));
		break;
	default:
		dprintk("RPC:       %s: address family not supported\n",
			__func__);