[SCM] UNNAMED PROJECT - branch master updated - 10e585413c217d9b9c32ff3d2fb3d8f24183c458

Ronnie Sahlberg sahlberg at samba.org
Thu Apr 3 05:38:34 GMT 2008


The branch, master has been updated
       via  10e585413c217d9b9c32ff3d2fb3d8f24183c458 (commit)
      from  4c006c675d577d4a45f4db2929af6d50bc28dd9e (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 10e585413c217d9b9c32ff3d2fb3d8f24183c458
Author: Ronnie Sahlberg <sahlberg at samba.org>
Date:   Thu Apr 3 16:35:23 2008 +1100

    we allocated one byte too little in the blob we need to send as the control to the server.

-----------------------------------------------------------------------

Summary of changes:
 tools/ctdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/tools/ctdb.c b/tools/ctdb.c
index df4b703..397e67a 100644
--- a/tools/ctdb.c
+++ b/tools/ctdb.c
@@ -524,7 +524,7 @@ static int control_addip(struct ctdb_context *ctdb, int argc, const char **argv)
 		return -1;
 	}
 
-	len = offsetof(struct ctdb_control_ip_iface, iface) + strlen(argv[1]);
+	len = offsetof(struct ctdb_control_ip_iface, iface) + strlen(argv[1]) + 1;
 	pub = talloc_size(ctdb, len); 
 	CTDB_NO_MEMORY(ctdb, pub);
 


-- 
UNNAMED PROJECT


More information about the samba-cvs mailing list