]> git.ipfire.org Git - thirdparty/asterisk.git/commit
hashtab: Add NULL check when destroying iterator. 32/1632/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:02:10 +0000 (09:02 -0400)
commit78734aadf46795094955e6783d5e6f1223b7fa65
treee14e8dd9de3ecbd5da2278eb01519f32433036e4
parent8f1b31cf966c462ddb87f2945435c567ad99ee60
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