summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2009-06-10 09:00:21 -0400
committerJeff Layton <jlayton@redhat.com>2009-06-10 09:00:21 -0400
commitddad58fc41b5ecd1056e444d28020ac1c036a71e (patch)
treef3b3dc894e5fbde8112dd4bb06091f64ba96d48f /client
parentad0d8032068fc9b920e205d3f5f923174101d777 (diff)
downloadsamba-ddad58fc41b5ecd1056e444d28020ac1c036a71e.tar.gz
samba-ddad58fc41b5ecd1056e444d28020ac1c036a71e.tar.bz2
samba-ddad58fc41b5ecd1056e444d28020ac1c036a71e.zip
mount.cifs: explicitly handle non AF_INET/AF_INET6 addresses
If we get a non-AF_INET(6) address, then just skip it and try the next one in the list. Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'client')
-rw-r--r--client/mount.cifs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/mount.cifs.c b/client/mount.cifs.c
index f53bcf1607..97144a0607 100644
--- a/client/mount.cifs.c
+++ b/client/mount.cifs.c
@@ -1548,6 +1548,8 @@ mount_retry:
ipaddr = inet_ntop(AF_INET, &addr4->sin_addr, optionstail,
options_size - current_len);
break;
+ default:
+ ipaddr = NULL;
}
/* if the address looks bogus, try the next one */