[Ocfs2-commits] manish commits r1321 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Aug 2 17:16:32 CDT 2004


Author: manish
Date: 2004-08-02 16:16:30 -0500 (Mon, 02 Aug 2004)
New Revision: 1321

Modified:
   trunk/src/super.c
Log:
Fix off by one in ip_address length check


Modified: trunk/src/super.c
===================================================================
--- trunk/src/super.c	2004-08-02 20:52:47 UTC (rev 1320)
+++ trunk/src/super.c	2004-08-02 21:16:30 UTC (rev 1321)
@@ -594,7 +594,7 @@
 	}
 
 #define MAX_IPv4_ADDR_STR_LEN	15 /* 3x '255' + 3x '.' */
-	if (ip_address && strlen (ip_address) < MAX_IPv4_ADDR_STR_LEN) {
+	if (ip_address && strlen (ip_address) <= MAX_IPv4_ADDR_STR_LEN) {
 		OcfsGlobalCtxt.comm_info.addr_u.ip_addr4 =
 			in_aton(ip_address);
 		LOG_TRACE_ARGS ("IP address: %s\n", ip_address);



More information about the Ocfs2-commits mailing list