]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cdr_pgsql: Fix crash when the module fails to load multiple times.
authorchrsmj <52975048+chrsmj@users.noreply.github.com>
Thu, 16 May 2024 20:12:51 +0000 (14:12 -0600)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 11 Jul 2024 13:22:18 +0000 (13:22 +0000)
commit9f369fb5fdfcab5f3f450cdadd65181cb6973c44
tree86142866a138b7bdc54134f1ca3ffd0bf1ab8bd6
parent877d5ff5779541702a7f6ad6af28905cd2def618
cdr_pgsql: Fix crash when the module fails to load multiple times.

Missing or corrupt cdr_pgsql.conf configuration file can cause the
second attempt to load the PostgreSQL CDR module to crash Asterisk via
the Command Line Interface because a null CLI command is registered on
the first failed attempt to load the module.

Resolves: #736
(cherry picked from commit 4fea8a433b398f869ce438b9211730538d42ecb6)
cdr/cdr_pgsql.c