aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-03 00:18:28 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-03 00:18:28 +0000
commiteef192b5686c869d09dcc685fdfdbc20cd02b0e6 (patch)
tree58e563ec4a54680933be9812fee266468c1daad9
parent7b56cffd499c87ab973c14afbf939807710dd969 (diff)
fixes signed to unsigned int comparision issue for FaxMaxDatagram value.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@250246 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 9944c00fd..cb7fba9d7 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7557,7 +7557,7 @@ static int process_sdp_a_image(const char *a, struct sip_pvt *p)
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;
}