Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx> --- cts/agents/sam_test_agent.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/cts/agents/sam_test_agent.c b/cts/agents/sam_test_agent.c index 9d24bd2..583ff03 100644 --- a/cts/agents/sam_test_agent.c +++ b/cts/agents/sam_test_agent.c @@ -1196,6 +1196,8 @@ static void do_command (int sock, char* func, char*args[], int num_args) { char response[100]; int err = 0; + ssize_t rc; + size_t send_len; qb_log (LOG_INFO, "RPC:%s() called.", func); if (strncmp ("test", func, 4) == 0) { @@ -1225,7 +1227,9 @@ static void do_command (int sock, char* func, char*args[], int num_args) snprintf (response, 100, "%s", FAIL_STR); qb_log (LOG_ERR, "%s() failed (%d).", func, err); } - send (sock, response, strlen (response) + 1, 0); + send_len = strlen (response); + rc = send (sock, response, send_len, 0); + assert(rc == send_len); } int -- 1.7.1 _______________________________________________ discuss mailing list discuss@xxxxxxxxxxxx http://lists.corosync.org/mailman/listinfo/discuss