From 197865ee46f542b34c10cf06fea5ee49f8477b8a Mon Sep 17 00:00:00 2001 From: Jan Friesse Date: Thu, 2 Jun 2016 16:42:08 +0200 Subject: [PATCH] Qnetd: Return errors in test algorithm Signed-off-by: Jan Friesse --- qdevices/qnetd-algo-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qdevices/qnetd-algo-test.c b/qdevices/qnetd-algo-test.c index 2ff8e7c4..5f9f9c75 100644 --- a/qdevices/qnetd-algo-test.c +++ b/qdevices/qnetd-algo-test.c @@ -75,7 +75,7 @@ qnetd_algo_test_client_init(struct qnetd_client *client) client->algorithm_data = malloc(sizeof(int)); if (client->algorithm_data == NULL) { - return (-1); + return (TLV_REPLY_ERROR_CODE_INTERNAL_ERROR); } algo_data = client->algorithm_data; @@ -89,7 +89,7 @@ qnetd_algo_test_client_init(struct qnetd_client *client) client->cluster->algorithm_data = malloc(sizeof(int)); if (client->cluster->algorithm_data == NULL) { - return (-1); + return (TLV_REPLY_ERROR_CODE_INTERNAL_ERROR); } algo_data = client->cluster->algorithm_data; -- 2.39.5