1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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

(This used to be ctdb commit 10e585413c217d9b9c32ff3d2fb3d8f24183c458)
This commit is contained in:
Ronnie Sahlberg 2008-04-03 16:35:23 +11:00
parent 6b797f148c
commit d6736b3720

View File

@ -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);