diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-02-16 09:34:16 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-24 14:54:38 -0800 |
commit | 288cfb1763afea7a7ddb4c4d9a2868070fbab4a3 (patch) | |
tree | d525914ca44136814c401014d950c406f4a11d51 /lib/debugobjects.c | |
parent | 9c7fa067fc9e25a086a8039192b20059c6d7d293 (diff) |
cifs: fix handling of scopeid in cifs_convert_address
commit 9616125611ee47693186533d76e403856a36b3c8 upstream.
The code finds, the '%' sign in an ipv6 address and copies that to a
buffer allocated on the stack. It then ignores that buffer, and passes
'pct' to simple_strtoul(), which doesn't work right because we're
comparing 'endp' against a completely different string.
Fix it by passing the correct pointer. While we're at it, this is a
good candidate for conversion to strict_strtoul as well.
Cc: David Howells <dhowells@redhat.com>
Reported-by: Björn JACKE <bj@sernet.de>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions