mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-14 07:14:14 +00:00
[mod_amqp] scan-build: Dereference of null pointer (loaded from variable 'active') - mod_amqp_connection_open()
This commit is contained in:
1 parent
42d3100609
commit
89555c2151
1 file changed
+3
-1
@@ -126,7 +126,9 @@ switch_status_t mod_amqp_connection_open(mod_amqp_connection_t *connections, mod
|
||||
}
|
||||
}
|
||||
|
||||
*active = connection_attempt;
|
||||
if (active) {
|
||||
*active = connection_attempt;
|
||||
}
|
||||
|
||||
if (!connection_attempt) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] could not connect to any AMQP brokers\n", profile_name);
|
||||
|
||||
Reference in new issue
Block a user