Author: sfrench
Date: 2007-09-26 18:36:38 +0000 (Wed, 26 Sep 2007)
New Revision: 25355

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25355

Log:
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

Modified:
   branches/SAMBA_3_2/source/client/mount.cifs.c


Changeset:
Modified: branches/SAMBA_3_2/source/client/mount.cifs.c
===================================================================
--- branches/SAMBA_3_2/source/client/mount.cifs.c       2007-09-26 17:43:15 UTC 
(rev 25354)
+++ branches/SAMBA_3_2/source/client/mount.cifs.c       2007-09-26 18:36:38 UTC 
(rev 25355)
@@ -426,7 +426,7 @@
                } 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;

Reply via email to