[PATCH] mount.cifs: check for NULL addr pointer before handling scopeid
Jeff Layton
jlayton at redhat.com
Sun Mar 7 16:49:33 MST 2010
Signed-off-by: Jeff Layton <jlayton at redhat.com>
---
mount.cifs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mount.cifs.c b/mount.cifs.c
index 5237476..4e38415 100644
--- a/mount.cifs.c
+++ b/mount.cifs.c
@@ -1604,7 +1604,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;
--
1.6.6.1
--MP_/jgxtJfRJltkCvXwQyTG4LGE--
More information about the linux-cifs-client
mailing list