]> git.ipfire.org Git - thirdparty/asterisk.git/commit
hashtab: Add NULL check when destroying iterator. 33/1633/1
authorJoshua Colp <jcolp@digium.com>
Sat, 14 Nov 2015 13:02:10 +0000 (09:02 -0400)
committerJoshua Colp <jcolp@digium.com>
Sat, 14 Nov 2015 13:06:35 +0000 (08:06 -0500)
commitafd9a89e5a0ed041d576afa1f387000404ed3c4d
tree11b5ce83f94ba92215120740b22b57ff4101322f
parent4f43b85c92050c8deba7041e687404228294d920
hashtab: Add NULL check when destroying iterator.

The hashtab API is pretty NULL tolerant which has resulted
in remaining callers not doing much checks themselves.
Unfortunately the function to destroy an iterator does not
do a NULL check and will result in a crash if passed NULL.
This change fixes that.

ASTERISK-25552 #close

Change-Id: Ic1bf8eec3639e5a440f1c941d3ae3893ac6ed619
main/hashtab.c