diff mbox

[3/4] mount: accept AF_VSOCK in nfs_verify_family()

Message ID 1475834503-3984-4-git-send-email-stefanha@redhat.com
State New
Headers show

Commit Message

Stefan Hajnoczi Oct. 7, 2016, 10:01 a.m. UTC
Since AF_VSOCK is now a supported address family it needs to be accepted
by nfs_verify_family().

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 utils/mount/network.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/utils/mount/network.c b/utils/mount/network.c
index dcc38ca..e4c6e1d 100644
--- a/utils/mount/network.c
+++ b/utils/mount/network.c
@@ -1417,7 +1417,7 @@  sa_family_t	config_default_family = AF_INET;
 static int
 nfs_verify_family(sa_family_t family)
 {
-	if (family != AF_INET)
+	if (family != AF_INET && family != AF_VSOCK)
 		return 0;
 
 	return 1;