From: William King Date: Sun, 19 May 2013 00:46:13 +0000 (-0700) Subject: My bad. some how a make didn't catch this issue after a cleanup refactor. In this... X-Git-Tag: v1.2.10~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c80d768004b51a9682f129c339494632acc806fa;p=thirdparty%2Ffreeswitch.git My bad. some how a make didn't catch this issue after a cleanup refactor. In this instance buf is being treated as an 8 byte number, not a pointer. --- diff --git a/src/mod/applications/mod_spandsp/udptl.c b/src/mod/applications/mod_spandsp/udptl.c index 7d72cc16e9..786d4dfcd6 100644 --- a/src/mod/applications/mod_spandsp/udptl.c +++ b/src/mod/applications/mod_spandsp/udptl.c @@ -75,7 +75,7 @@ static int decode_open_type(const uint8_t *buf, int limit, int *len, const uint8 return -1; /* Was told the buffer was large enough, but in reality it didn't exist. FS-5202 */ - if ( buf[*len] == NULL ) + if ( buf[*len] == 0 ) return -1; *pbuf = &buf[*len];