[svn-commits] rmudgett: mISDNuser/trunk r62 - /mISDNuser/trunk/suppserv/fac.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 4 18:46:28 CST 2009


Author: rmudgett
Date: Wed Mar  4 18:46:25 2009
New Revision: 62

URL: http://svn.digium.com/svn-view/thirdparty?view=rev&rev=62
Log:
Fixed facility ie length decode if the length is greater than 127.

Modified:
    mISDNuser/trunk/suppserv/fac.c

Modified: mISDNuser/trunk/suppserv/fac.c
URL: http://svn.digium.com/svn-view/thirdparty/mISDNuser/trunk/suppserv/fac.c?view=diff&rev=62&r1=61&r2=62
==============================================================================
--- mISDNuser/trunk/suppserv/fac.c (original)
+++ mISDNuser/trunk/suppserv/fac.c Wed Mar  4 18:46:25 2009
@@ -474,20 +474,15 @@
 int decodeFac(__u8 *src, struct FacParm *fac)
 {
 	struct asn1_parm pc;
-	int 	fac_len,
-			offset;
-	__u8 	*end,
-		 	*p = src;
+	unsigned fac_len;
+	__u8 *end;
+	__u8 *p = src;
 
 	if (!p) {
 		goto _dec_err;
 	}
 
-	offset = ParseLen(p, p + 3, &fac_len);
-	if (offset < 0) {
-		goto _dec_err;
-	}
-	p += offset;
+	fac_len = *p++;
 	end = p + fac_len;
 
 	ParseASN1(p + 1, end, 0);




More information about the svn-commits mailing list