]> 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:44 +0000 (13:22 +0000)
commitb5b873d8b884ec1c557ca7ba3fa97669310ba95c
tree67b87f64003fd36d95db418465a5966021940ea3
parent63e25ed4feda76b714b6ae6e33032bcbab2c5496
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 c3d2f328528efa286dfd2014c0bb58e8fd5b2416)
cdr/cdr_pgsql.c