diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-03-07 18:49:33 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2010-03-07 18:49:33 -0500 |
commit | cff3f7cb2b94aec118f27ee8dd904ef216489938 (patch) | |
tree | 36e9cd870b28129c2747cbc719dec53d21fc06a7 /mount.cifs.c | |
parent | ec35b3bcfeb36b7a1d82b2a8136997404502aa4a (diff) | |
download | cifs-utils-cff3f7cb2b94aec118f27ee8dd904ef216489938.tar.gz cifs-utils-cff3f7cb2b94aec118f27ee8dd904ef216489938.tar.bz2 cifs-utils-cff3f7cb2b94aec118f27ee8dd904ef216489938.zip |
mount.cifs: check for NULL addr pointer before handling scopeid
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'mount.cifs.c')
-rw-r--r-- | 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; |