summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorSteve French <sfrench@samba.org>2007-09-26 18:36:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:00 -0500
commitb486621c7fb6e678f336f73d649be6ff1cd51478 (patch)
treee3f1872f88013b8305d9a5fbb7d87f6eb8cce1d0 /source3/client
parent3309aacc991605a430bde23f284870eeb31a20a8 (diff)
downloadsamba-b486621c7fb6e678f336f73d649be6ff1cd51478.tar.gz
samba-b486621c7fb6e678f336f73d649be6ff1cd51478.tar.bz2
samba-b486621c7fb6e678f336f73d649be6ff1cd51478.zip
r25355: IP address parsing did not allow for fully expanded ipv6 addresses
(which can be 12 bytes longer than we were allowing for). Thanks to Dr. David Holder (This used to be commit 0202a84e3f61665953bd5207218063b0d5ff6088)
Diffstat (limited to 'source3/client')
-rwxr-xr-xsource3/client/mount.cifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c
index eb45ae5b4a..5ed0f27ab1 100755
--- a/source3/client/mount.cifs.c
+++ b/source3/client/mount.cifs.c
@@ -426,7 +426,7 @@ static int parse_options(char ** optionsp, int * filesys_flags)
} else if (strncmp(data, "ip", 2) == 0) {
if (!value || !*value) {
printf("target ip address argument missing");
- } else if (strnlen(value, 35) < 35) {
+ } else if (strnlen(value, INET6_ADDRSTRLEN) < INET6_ADDRSTRLEN) {
if(verboseflag)
printf("ip address %s override specified\n",value);
got_ip = 1;