mount.cifs: explicitly handle non AF_INET/AF_INET6 addresses
authorJeff Layton <jlayton@redhat.com>
Wed, 10 Jun 2009 13:00:21 +0000 (09:00 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 10 Jun 2009 13:00:21 +0000 (09:00 -0400)
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>
client/mount.cifs.c

index f53bcf16071cb611ff155ceeecc4f0974ace610b..97144a060727af804e6fad026d3b95d504373e96 100644 (file)
@@ -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 */