diff options
Diffstat (limited to 'source3')
-rwxr-xr-x | source3/client/mount.cifs.c | 2 |
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; |