fs: nfs: Fix nfsmount error

Summary:
- I noticed that nfsmount does not work due to the recent
  changes on sockaddr_storage alignment.
- This commit fixes this issue.

Impact:
- None

Testing:
- Tested with sabre-6quad:netnsh_smp (QEMU)

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2024-08-27 09:37:46 +09:00 committed by Xiang Xiao
parent 6b21bebcd1
commit ec4d31515a

View File

@ -184,8 +184,8 @@ static int rpcclnt_socket(FAR struct rpcclnt *rpc, in_port_t rport)
memcpy(&raddr, rpc->rc_name, sizeof(raddr));
memset(&laddr, 0, sizeof(laddr));
laddr.ss_family = raddr.ss_family;
memset(laddr.ss_data, 0, sizeof(laddr.ss_data));
if (raddr.ss_family == AF_INET6)
{