[svn-commits] mnicholson: branch 1.6.2 r264388 - in /branches/1.6.2: ./ main/udptl.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed May 19 15:27:59 CDT 2010


Author: mnicholson
Date: Wed May 19 15:27:56 2010
New Revision: 264388

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=264388
Log:
Merged revisions 264379 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r264379 | mnicholson | 2010-05-19 15:26:27 -0500 (Wed, 19 May 2010) | 4 lines
  
  Cast an unsigned int to a signed int when comparing it with 0.
  
  (AST-377)
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/main/udptl.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/main/udptl.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/udptl.c?view=diff&rev=264388&r1=264387&r2=264388
==============================================================================
--- branches/1.6.2/main/udptl.c (original)
+++ branches/1.6.2/main/udptl.c Wed May 19 15:27:56 2010
@@ -1097,7 +1097,7 @@
 	/* Cook up the UDPTL packet, with the relevant EC info. */
 	len = udptl_build_packet(s, buf, sizeof(buf), f->data.ptr, len);
 
-	if (len > 0 && s->them.sin_port && s->them.sin_addr.s_addr) {
+	if ((signed int) len > 0 && s->them.sin_port && s->them.sin_addr.s_addr) {
 		if ((res = sendto(s->fd, buf, len, 0, (struct sockaddr *) &s->them, sizeof(s->them))) < 0)
 			ast_log(LOG_NOTICE, "(%s): UDPTL Transmission error to %s:%d: %s\n",
 				LOG_TAG(s), ast_inet_ntoa(s->them.sin_addr), ntohs(s->them.sin_port), strerror(errno));




More information about the svn-commits mailing list