git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad0d803
)
mount.cifs: explicitly handle non AF_INET/AF_INET6 addresses
author
Jeff Layton
<jlayton@redhat.com>
Wed, 10 Jun 2009 13:00:21 +0000
(09:00 -0400)
committer
Jeff Layton
<jlayton@redhat.com>
Wed, 10 Jun 2009 13:00:21 +0000
(09:00 -0400)
If we get a non-AF_INET(6) address, then just skip it and try the next
one in the list.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
client/mount.cifs.c
patch
|
blob
|
history
diff --git
a/client/mount.cifs.c
b/client/mount.cifs.c
index f53bcf16071cb611ff155ceeecc4f0974ace610b..97144a060727af804e6fad026d3b95d504373e96 100644
(file)
--- a/
client/mount.cifs.c
+++ b/
client/mount.cifs.c
@@
-1548,6
+1548,8
@@
mount_retry:
ipaddr = inet_ntop(AF_INET, &addr4->sin_addr, optionstail,
options_size - current_len);
break;
+ default:
+ ipaddr = NULL;
}
/* if the address looks bogus, try the next one */