]> 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:22:05 +0000 (17:22 -0500)
commit122ef44584d7d83482bb4226ff11fbf986f1730c
tree3137bbecbfc3c0386a2bef350a5af07defa7d44d
parent6c4e181b2ff69355c18108efbe7f2810d32e3036
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