diff options
author | Jeff Layton <jlayton@redhat.com> | 2010-11-30 15:14:48 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-12-09 13:33:15 -0800 |
commit | 8dac975b179793bd7e10c5ffc3e8e9358b825980 (patch) | |
tree | c52e8aba72d52124835a1ec52a5634f41842f5f4 /fs/hpfs | |
parent | 1fdd366b9de1a1ae1532b1b9bff92124aef04721 (diff) |
cifs: fix parsing of hostname in dfs referrals
commit ba03864872691c0bb580a7fb47388da337ef4aa2 upstream.
The DFS referral parsing code does a memchr() call to find the '\\'
delimiter that separates the hostname in the referral UNC from the
sharename. It then uses that value to set the length of the hostname via
pointer subtraction. Instead of subtracting the start of the hostname
however, it subtracts the start of the UNC, which causes the code to
pass in a hostname length that is 2 bytes too long.
Regression introduced in commit 1a4240f4.
Reported-and-Tested-by: Robbert Kouprie <robbert@exx.nl>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Cc: Wang Lei <wang840925@gmail.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/hpfs')
0 files changed, 0 insertions, 0 deletions