]> 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)
committerchrsmj <52975048+chrsmj@users.noreply.github.com>
Wed, 5 Jun 2024 19:19:29 +0000 (19:19 +0000)
commitc3d2f328528efa286dfd2014c0bb58e8fd5b2416
treef4f25f5ccac32fdcd5882739b678c53efaffddf1
parent70f469139c12bf39e948a1e4e6001ef59fef9e38
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
cdr/cdr_pgsql.c