From: Jeff Layton Date: Wed, 10 Jun 2009 13:00:21 +0000 (-0400) Subject: mount.cifs: explicitly handle non AF_INET/AF_INET6 addresses X-Git-Tag: tdb-1.1.5~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddad58fc41b5ecd1056e444d28020ac1c036a71e;p=thirdparty%2Fsamba.git 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 --- diff --git a/client/mount.cifs.c b/client/mount.cifs.c index f53bcf16071..97144a06072 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 */