From be0b13f553126297d7e15c2b969e5d1debe34894 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Tue, 21 Feb 2023 13:21:33 +0100 Subject: action: return error for act_call --- actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions.c b/actions.c index ff8ff93..d4096b2 100644 --- a/actions.c +++ b/actions.c @@ -186,9 +186,9 @@ int do_actions(void *data, struct action actions[], unsigned int n_actions, int return -1; } if (c.err != 0) { - resp.error = c.err; + resp.error = -1; if (send_target(&resp, notifyfd) == -1) - return -1; + return c.err; } /* * The result of the call needs to be save as -- cgit v1.2.3