fixes infinite loop during udptl.c's decode_open_type
authorDavid Vossel <dvossel@digium.com>
Wed, 19 May 2010 20:30:33 +0000 (20:30 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 19 May 2010 20:30:33 +0000 (20:30 +0000)
commitd7e9d07156637989551f3c3df58c246135e2c007
tree521cb52fe1b4958fd831dfd819a66d0e5a30c84f
parent6eaf9b874f15a823a2dfd202eea9bfb67a8ed4f5
fixes infinite loop during udptl.c's decode_open_type

When decode_length returns the length there is a check to see if that
length is negative, if so the decode loop breaks as this means the
limit has been reached.  The problem here is that length is an
unsigned int, so length can never be negative.  This resulted in
an infinite loop.

(issue #17352)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@264400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/udptl.c