Merge pull request #437 from dragos-oancea/mod_amqp-nullptr-deref
[mod_amqp] scan-build: Dereference of null pointer (loaded from variable 'active') - mod_amqp_connection_open()
This commit is contained in:
commit
baeb11c208
|
@ -126,7 +126,9 @@ switch_status_t mod_amqp_connection_open(mod_amqp_connection_t *connections, mod
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (active) {
|
||||||
*active = connection_attempt;
|
*active = connection_attempt;
|
||||||
|
}
|
||||||
|
|
||||||
if (!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);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile[%s] could not connect to any AMQP brokers\n", profile_name);
|
||||||
|
|
Loading…
Reference in New Issue