mount.cifs: explicitly handle non AF_INET/AF_INET6 addresses
[sfrench/samba-autobuild/.git] / 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 */