Module: kamailio
Branch: master
Commit: 0994754b9925dad3f306a3ecb9c62c41588390d1
URL:
https://github.com/kamailio/kamailio/commit/0994754b9925dad3f306a3ecb9c62c4…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2022-10-14T07:06:54Z
mqtt: use same coding style regarding whitespace/tabs after 2bb8b568
---
Modified: src/modules/mqtt/mqtt_dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0994754b9925dad3f306a3ecb9c62c4…
Patch:
https://github.com/kamailio/kamailio/commit/0994754b9925dad3f306a3ecb9c62c4…
---
diff --git a/src/modules/mqtt/mqtt_dispatch.c b/src/modules/mqtt/mqtt_dispatch.c
index a402947353..eaf2f51f91 100644
--- a/src/modules/mqtt/mqtt_dispatch.c
+++ b/src/modules/mqtt/mqtt_dispatch.c
@@ -224,17 +224,17 @@ int mqtt_run_dispatcher(mqtt_dispatcher_cfg_t* cfg)
LM_ERR("mosquitto_tls_set() failed: %d %s\n",errno, strerror(errno));
return -1;
}
- if (cfg->tls_alpn != NULL) {
+ if (cfg->tls_alpn != NULL) {
#if LIBMOSQUITTO_VERSION_NUMBER >= 1006000
- res = mosquitto_string_option(_mosquitto, MOSQ_OPT_TLS_ALPN,
cfg->tls_alpn);
- if (res != MOSQ_ERR_SUCCESS) {
- LM_ERR("mosquitto_string_option() failed setting TLS ALPN: %d
%s\n",errno, strerror(errno));
- return -1;
- }
+ res = mosquitto_string_option(_mosquitto, MOSQ_OPT_TLS_ALPN, cfg->tls_alpn);
+ if (res != MOSQ_ERR_SUCCESS) {
+ LM_ERR("mosquitto_string_option() failed setting TLS ALPN: %d %s\n",errno,
strerror(errno));
+ return -1;
+ }
#else
- LM_WARN("unable to set TLS ALPN due to outdated mosquitto library version,
upgrade it to >= 1.6.0\n")
+ LM_WARN("unable to set TLS ALPN due to outdated mosquitto library version,
upgrade it to >= 1.6.0\n")
#endif
- }
+ }
}
res = mosquitto_connect(_mosquitto, cfg->host, cfg->port, cfg->keepalive);