]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis_message.c: Don't create immutable stasis objects with locks.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 14 Sep 2018 20:48:24 +0000 (15:48 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 18 Sep 2018 18:18:08 +0000 (13:18 -0500)
commit192f71b7de4f126ee489949f2b7362fa7f22b33c
treea11ab739014c79a4e300d100c03be28d05e3cc7f
parentb0a0b975c50b176debce878327f14281630403d6
stasis_message.c: Don't create immutable stasis objects with locks.

* Create the stasis message object without a lock as it is immutable.
* Create the stasis message type object without a lock as it is immutable.
* Creating the stasis message type could crash if the passed in type name
is NULL and REF_DEBUG is enabled.  Added missing NULL check when passing
the ao2 object tag string.

Change-Id: I28763c58bb9f0b427c11971d0103bf94055e7b32
main/stasis_message.c