Merge pull request #1065 in FS/freeswitch from ~ARON45/freeswitch:bugfix/FS-9758-freeswitch-segfaults-when-reloading to master
* commit '9619bff6858d3d94e9375841925ca5072abc5dca': FS-9758: switch_sql_queue_manager_destroy() avoid null pointer deref
This commit is contained in:
commit
6398ed91bb
|
@ -1710,6 +1710,11 @@ SWITCH_DECLARE(switch_status_t) switch_sql_queue_manager_destroy(switch_sql_queu
|
|||
|
||||
switch_assert(qmp);
|
||||
qm = *qmp;
|
||||
if (!qm) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "No SQL queue to destroy.\n");
|
||||
return SWITCH_STATUS_NOOP;
|
||||
}
|
||||
|
||||
*qmp = NULL;
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "%s Destroying SQL queue.\n", qm->name);
|
||||
|
|
Loading…
Reference in New Issue