提交 9619bff6 authored 作者: Aron Podrigal's avatar Aron Podrigal

FS-9758: switch_sql_queue_manager_destroy() avoid null pointer deref

If passed in *qmp is a null pointer return `SWITCH_STATUS_NOOP`
上级 916ec2c6
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论