summaryrefslogtreecommitdiff
path: root/ctdb/client/client_control.c
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2016-05-01 22:13:35 +1000
committerMartin Schwenke <martins@samba.org>2016-05-03 04:43:20 +0200
commit10dbeddab5237b401c1eb42a50a27dde19a580c9 (patch)
treee8d5f1afba71c1f51ce50dcdf5d1e3f2f268ccdd /ctdb/client/client_control.c
parentf288ce84281c62cd8e0026caf3dd9c89acc2a2ef (diff)
downloadsamba-10dbeddab5237b401c1eb42a50a27dde19a580c9.tar.gz
ctdb-protocol: Return required buffer size in push functions
If the buffer size provided is not sufficient, then return the required buffer length. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/client/client_control.c')
-rw-r--r--ctdb/client/client_control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/client/client_control.c b/ctdb/client/client_control.c
index ecbdb2dd6a4..1755eccf65d 100644
--- a/ctdb/client/client_control.c
+++ b/ctdb/client/client_control.c
@@ -105,7 +105,7 @@ struct tevent_req *ctdb_client_control_send(TALLOC_CTX *mem_ctx,
return tevent_req_post(req, ev);
}
- ret = ctdb_req_control_push(&h, request, buf, buflen);
+ ret = ctdb_req_control_push(&h, request, buf, &buflen);
if (ret != 0) {
tevent_req_error(req, ret);
return tevent_req_post(req, ev);