diff options
-rw-r--r-- | client/mount.cifs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mount.cifs.c b/client/mount.cifs.c index 0b8d5b400f4..1b472c2ea50 100644 --- a/client/mount.cifs.c +++ b/client/mount.cifs.c @@ -1648,7 +1648,7 @@ mount_retry: } } - if (addr->ai_addr->sa_family == AF_INET6 && addr6->sin6_scope_id) { + if (addr && addr->ai_addr->sa_family == AF_INET6 && addr6->sin6_scope_id) { strlcat(options, "%", options_size); current_len = strnlen(options, options_size); optionstail = options + current_len; |