Commit 3005cba4 authored by Lucas Russo's avatar Lucas Russo

libs/libbpmclient/*: fix write_read function so that unused fields are still sent

On BPM server, even if a field is not used, trhe client must send
it. So, that the server can correctly validate it size.
parent 237194c6
......@@ -271,7 +271,7 @@ bpm_client_err_e param_client_write_read (bpm_client_t *self, char *service,
{
uint32_t rw = READ_MODE;
return param_client_read_gen (self, service, operation, rw, &param1,
sizeof (param1), NULL, 0, param_out, sizeof (*param_out));
sizeof (param1), &param1, sizeof (param1), param_out, sizeof (*param_out));
}
bpm_client_err_e param_client_write_read_double (bpm_client_t *self, char *service,
......@@ -279,7 +279,7 @@ bpm_client_err_e param_client_write_read_double (bpm_client_t *self, char *servi
{
uint32_t rw = READ_MODE;
return param_client_read_gen (self, service, operation, rw, &param1,
sizeof (param1), NULL, 0, param_out, sizeof (*param_out));
sizeof (param1), &param1, sizeof (param1), param_out, sizeof (*param_out));
}
/********************* Utility functions ************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment