From: <jpg...@us...> - 2007-12-05 23:36:55
|
Revision: 1301 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1301&view=rev Author: jpgrayson Date: 2007-12-05 15:36:59 -0800 (Wed, 05 Dec 2007) Log Message: ----------- Use cast to avoid signed/unsigned comparison warnings. Modified Paths: -------------- trunk/lib/libiax2/src/iax.c Modified: trunk/lib/libiax2/src/iax.c =================================================================== --- trunk/lib/libiax2/src/iax.c 2007-12-05 23:36:23 UTC (rev 1300) +++ trunk/lib/libiax2/src/iax.c 2007-12-05 23:36:59 UTC (rev 1301) @@ -3102,7 +3102,7 @@ if (ntohs(fh->scallno) & IAX_FLAG_FULL) { /* Full size header */ - if (len < sizeof(struct ast_iax2_full_hdr)) { + if ((size_t)len < sizeof(struct ast_iax2_full_hdr)) { DEBU(G "Short header received from %s\n", inet_ntoa(sin->sin_addr)); IAXERROR "Short header received from %s\n", inet_ntoa(sin->sin_addr)); return NULL; @@ -3121,7 +3121,7 @@ DEBU(G "No session?\n"); return NULL; } else { - if (len < sizeof(struct ast_iax2_mini_hdr)) { + if ((size_t)len < sizeof(struct ast_iax2_mini_hdr)) { DEBU(G "Short header received from %s\n", inet_ntoa(sin->sin_addr)); IAXERROR "Short header received from %s\n", inet_ntoa(sin->sin_addr)); return NULL; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |