From ddad58fc41b5ecd1056e444d28020ac1c036a71e Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Wed, 10 Jun 2009 09:00:21 -0400 Subject: 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 --- client/mount.cifs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/mount.cifs.c') 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 */ -- cgit