[asterisk-commits] dvossel: branch 1.6.0 r250265 - in /branches/1.6.0: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 2 18:22:27 CST 2010
Author: dvossel
Date: Tue Mar 2 18:22:22 2010
New Revision: 250265
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=250265
Log:
Merged revisions 250246 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r250246 | dvossel | 2010-03-02 18:18:28 -0600 (Tue, 02 Mar 2010) | 2 lines
fixes signed to unsigned int comparision issue for FaxMaxDatagram value.
........
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/channels/chan_sip.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.0/channels/chan_sip.c?view=diff&rev=250265&r1=250264&r2=250265
==============================================================================
--- branches/1.6.0/channels/chan_sip.c (original)
+++ branches/1.6.0/channels/chan_sip.c Tue Mar 2 18:22:22 2010
@@ -7912,7 +7912,7 @@
found = TRUE;
} else if ((sscanf(a, "T38FaxMaxDatagram:%30u", &x) == 1) || (sscanf(a, "T38MaxDatagram:%30u", &x) == 1)) {
/* override the supplied value if the configuration requests it */
- if (p->t38_maxdatagram > x) {
+ if (((signed int) p->t38_maxdatagram >= 0) && ((unsigned int) p->t38_maxdatagram > x)) {
ast_debug(1, "Overriding T38FaxMaxDatagram '%d' with '%d'\n", x, p->t38_maxdatagram);
x = p->t38_maxdatagram;
}
More information about the asterisk-commits
mailing list