]> git.ipfire.org Git - thirdparty/asterisk.git/commit
hashtab: Add NULL check when destroying iterator. 34/1634/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:48 +0000 (08:06 -0500)
commita1fcf6f7b28caf8e2f9b808449c86515e2ef90c4
tree4945aed4016d1590d5eadb69cf2b31dbf7611957
parente8881e177046422690d2e87417a93b253469c379
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