]> git.ipfire.org Git - thirdparty/asterisk.git/commit
resource_channels: Check if a passed in ID is NULL before checking its length
authorMatthew Jordan <mjordan@digium.com>
Sat, 8 Mar 2014 15:43:30 +0000 (15:43 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 8 Mar 2014 15:43:30 +0000 (15:43 +0000)
commit14afa3297928999a9730a456982217074ab620c3
tree03eb137edac25c78fa2c39ca0635dd73e4843c97
parent20330c41db9a583878f29e86e01d714cb4718059
resource_channels: Check if a passed in ID is NULL before checking its length

Calling strlen on a NULL string is explosive. This patch checks whether or not
the passed in string is NULL or zero length before checking to see if the
string is too long.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@410274 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/ari/resource_channels.c