diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-07-19 11:12:08 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-08-30 14:59:25 +0200 |
commit | 97184a8d461265f909defae35ffef08753aea9b2 (patch) | |
tree | 2aa385cca32200d2aa72fe51187a8a0fd5f3fe43 /ctdb/client | |
parent | b0ce8183ba773dbd38de28a97e699feb4e06aa01 (diff) | |
download | samba-97184a8d461265f909defae35ffef08753aea9b2.tar.gz |
ctdb-protocol: Fix marshalling for ctdb_req_header
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/client')
-rw-r--r-- | ctdb/client/client_connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/client/client_connect.c b/ctdb/client/client_connect.c index 34259dd2b27..6fd2c87da13 100644 --- a/ctdb/client/client_connect.c +++ b/ctdb/client/client_connect.c @@ -165,9 +165,10 @@ static void client_read_handler(uint8_t *buf, size_t buflen, struct ctdb_client_context *client = talloc_get_type_abort( private_data, struct ctdb_client_context); struct ctdb_req_header hdr; + size_t np; int ret; - ret = ctdb_req_header_pull(buf, buflen, &hdr); + ret = ctdb_req_header_pull(buf, buflen, &hdr, &np); if (ret != 0) { DEBUG(DEBUG_WARNING, ("invalid header, ret=%d\n", ret)); return; |