git.samba.org
/
jlayton
/
cifs-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec35b3b
)
mount.cifs: check for NULL addr pointer before handling scopeid
author
Jeff Layton
<jlayton@redhat.com>
Sun, 7 Mar 2010 23:49:33 +0000
(18:49 -0500)
committer
Jeff Layton
<jlayton@redhat.com>
Sun, 7 Mar 2010 23:49:33 +0000
(18:49 -0500)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
mount.cifs.c
patch
|
blob
|
history
diff --git
a/mount.cifs.c
b/mount.cifs.c
index 5237476fb855b93474f71451764cf63bbe9cce76..4e384153f8956e39dcb3ed4b71a3cf1898e0c20c 100644
(file)
--- 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;