diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mount/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mount/network.c b/utils/mount/network.c index 92f75b4..b41388e 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -291,7 +291,7 @@ int nfs_name_to_address(const char *hostname, } memcpy(&sin->sin_addr, hp->h_addr, hp->h_length); - *salen = hp->h_length; + *salen = sizeof(struct sockaddr_in); return 1; } #endif /* HAVE_DECL_AI_ADDRCONFIG */ |