Module: kamailio
Branch: 5.5
Commit: 2c3de1aebc526939c12fa501509d12ce1728b9a8
URL:
https://github.com/kamailio/kamailio/commit/2c3de1aebc526939c12fa501509d12c…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-14T13:01:30+01:00
kazoo: fixed misleading-indentation warning GH #3012
(cherry picked from commit 2b9706aca33b8ca34d3d9c58b80527956c92dd7a)
---
Modified: src/modules/kazoo/kz_amqp.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2c3de1aebc526939c12fa501509d12c…
Patch:
https://github.com/kamailio/kamailio/commit/2c3de1aebc526939c12fa501509d12c…
---
diff --git a/src/modules/kazoo/kz_amqp.c b/src/modules/kazoo/kz_amqp.c
index 5685f5a845..ecbac752b4 100644
--- a/src/modules/kazoo/kz_amqp.c
+++ b/src/modules/kazoo/kz_amqp.c
@@ -796,9 +796,9 @@ void kz_amqp_connection_close(kz_amqp_conn_ptr rmq) {
}
void kz_amqp_channel_close(kz_amqp_conn_ptr rmq, amqp_channel_t channel) {
- LM_DBG("Close rmq channel\n");
- if (!rmq)
- return;
+ LM_DBG("Close rmq channel\n");
+ if (!rmq)
+ return;
LM_DBG("close channel: %d rmq(%p)->channel(%d)\n", getpid(), (void *)rmq,
channel);
kz_amqp_error("closing channel", amqp_channel_close(rmq->conn, channel,
AMQP_REPLY_SUCCESS));
@@ -1121,11 +1121,11 @@ int kz_amqp_pipe_send(str *str_exchange, str *str_routing_key, str
*str_payload)
if(cmd)
kz_amqp_free_pipe_cmd(cmd);
- if(json_obj)
- json_object_put(json_obj);
+ if(json_obj)
+ json_object_put(json_obj);
- if(s_local_routing_key)
- pkg_free(s_local_routing_key);
+ if(s_local_routing_key)
+ pkg_free(s_local_routing_key);
return ret;
}
@@ -2009,14 +2009,13 @@ int kz_amqp_subscribe_simple(struct sip_msg* msg, char* exchange,
char* exchange
binding->bind = bind;
bindings_count++;
- return 1;
+ return 1;
error:
- if(binding != NULL)
- shm_free(binding);
+ if(binding != NULL)
+ shm_free(binding);
return -1;
-
}