]> 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:31 +0000 (19:19 +0000)
commit4fea8a433b398f869ce438b9211730538d42ecb6
tree0540837befc6b6c2a38e4b8d8df8c503a071592f
parente9fb27f8045bd2064002d3255611924fe5fa525c
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