From 904bc76605df2172e59aa284c2862a7a0421186c Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Wed, 12 May 2010 07:05:10 -0400 Subject: [PATCH] mount.cifs: check for NULL addr pointer before handling scopeid Signed-off-by: Jeff Layton --- 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 0b8d5b4..1b472c2 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; -- 1.6.6.1