From b486621c7fb6e678f336f73d649be6ff1cd51478 Mon Sep 17 00:00:00 2001 From: Steve French Date: Wed, 26 Sep 2007 18:36:38 +0000 Subject: 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) --- source3/client/mount.cifs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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; -- cgit