From 655fc47e417831125d6ebb5f68d4e86371cb931f Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Fri, 26 Mar 2021 14:05:24 +0100 Subject: -more coverity --- src/arm/arm_api.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/arm/arm_api.c') diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index 899b6f152..2ec913a0a 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c @@ -951,7 +951,8 @@ GNUNET_ARM_request_service_start (struct GNUNET_ARM_Handle *h, * 2) We're not connected to ARM. * Cancel any reconnection attempts temporarily, then perform * a service test. - */if (GNUNET_YES == h->currently_up) + */ + if (GNUNET_YES == h->currently_up) { LOG (GNUNET_ERROR_TYPE_DEBUG, "ARM is already running\n"); @@ -970,7 +971,8 @@ GNUNET_ARM_request_service_start (struct GNUNET_ARM_Handle *h, yet complete the MQ handshake. However, given that users are unlikely to hammer 'gnunet-arm -s' on a busy system, the above check should catch 99.99% of the cases where ARM - is already running. */LOG (GNUNET_ERROR_TYPE_DEBUG, + is already running. */ + LOG (GNUNET_ERROR_TYPE_DEBUG, "Starting ARM service\n"); if (NULL == (sig = GNUNET_DISK_pipe (GNUNET_DISK_PF_NONE))) { @@ -1003,13 +1005,13 @@ GNUNET_ARM_request_service_start (struct GNUNET_ARM_Handle *h, op->rfd, ¬ify_starting, op); + GNUNET_DISK_pipe_close (sig); } else { op->async = GNUNET_SCHEDULER_add_now (¬ify_starting, op); } - GNUNET_DISK_pipe_close (sig); return op; } -- cgit v1.2.3