]> git.ipfire.org Git - thirdparty/asterisk.git/commit
dundi: fix NULL dereference.
authorJaco Kroon <jaco@uls.co.za>
Wed, 18 Mar 2020 09:38:30 +0000 (11:38 +0200)
committerKevin Harwell <kharwell@digium.com>
Wed, 25 Mar 2020 22:21:36 +0000 (17:21 -0500)
commit9065d95254bc74ddf8752a3a7d711ac9e3d892bd
tree6e0cbc276993f3457bc9b17c7b6f47e202f77af8
parent0daf62f501089dff5255b906965e534ab303f639
dundi:  fix NULL dereference.

If a negative (error) return is received from dundi_lookup_internal,
this is not handled correctly when assigning the result to the buffer.
As such, use a signed integer in the assignment and do a proper
comparison.

ASTERISK-21205

Change-Id: I5214ebb6491e2bd14f90c7d3ce229da86888f739
pbx/pbx_dundi.c