]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_presencestate: Fix invalid memory access.
authorNaveen Albert <asterisk@phreaknet.org>
Sun, 13 Nov 2022 22:15:07 +0000 (22:15 +0000)
committerJoshua Colp <jcolp@sangoma.com>
Thu, 8 Dec 2022 16:20:07 +0000 (10:20 -0600)
commitf37194ecdb66b530096a3962e2731bebe23a338a
tree7191e5c240a13548c0d2171819c2237cb8bf4f49
parent48b5a4def0e127861dd36a96e6b29ff962f4bbaa
func_presencestate: Fix invalid memory access.

When parsing information from AstDB while loading,
it is possible that certain pointers are never
set, which leads to invalid memory access and
then, fatally, invalid free attempts on this memory.
We now initialize to NULL to prevent this.

ASTERISK-30311 #close

Change-Id: I6120681d04fd2c12a9473f35ce95a1f8e74e3929
funcs/func_presencestate.c