]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Astobj2: Ensure all calls to __adjust_lock pass a valid object. 21/221/5
authorCorey Farrell <git@cfware.com>
Wed, 22 Apr 2015 20:17:53 +0000 (16:17 -0400)
committerCorey Farrell <git@cfware.com>
Thu, 23 Apr 2015 00:44:56 +0000 (20:44 -0400)
commit73efb093b8cd1a81cee5f9fb0120ac7f74a82ea4
treee83bcf6fd66809da64bcc6b266341360bb411299
parentb0e929219b40f134a925d68dbd764910e3389f3e
Astobj2: Ensure all calls to __adjust_lock pass a valid object.

__adjust_lock doesn't check for invalid objects, and doesn't have an
appropriate return value for invalid objects.  Most callers of
__adjust_lock pass objects that have already been confirmed valid,
this change adds checks before the remaining calls.

ASTERISK-24997 #close
Reported by: Corey Farrell

Change-Id: I669100f87937cc3f867cec56a27ae9c01292908f
main/astobj2_container.c
main/astobj2_hash.c
main/astobj2_rbtree.c