[libss7-commits] mattf: trunk r73 - /trunk/isup.c
libss7-commits at lists.digium.com
libss7-commits at lists.digium.com
Sat Nov 25 14:28:15 MST 2006
Author: mattf
Date: Sat Nov 25 15:28:14 2006
New Revision: 73
URL: http://svn.digium.com/view/libss7?view=rev&rev=73
Log:
Make sure we do some checks before sending group messages that are out of protocol spec
Modified:
trunk/isup.c
Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?view=diff&rev=73&r1=72&r2=73
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Sat Nov 25 15:28:14 2006
@@ -1261,6 +1261,10 @@
call.cic = begincic;
call.range = endcic - begincic;
+
+ if (call.range > 31)
+ return -1;
+
return isup_send_message(ss7, &call, messagetype, cicgroup_params);
}
@@ -1273,6 +1277,10 @@
call.cic = begincic;
call.range = endcic - begincic;
+
+ if (call.range > 31)
+ return -1;
+
return isup_send_message(ss7, &call, ISUP_GRS, greset_params);
}
@@ -1284,6 +1292,10 @@
return -1;
call.cic = begincic;
call.range = endcic - begincic;
+
+ if (call.range > 31)
+ return -1;
+
return isup_send_message(ss7, &call, ISUP_GRA, greset_params);
}
More information about the libss7-commits
mailing list