[libss7-commits] mattf: trunk r14 - /trunk/isup.c

libss7-commits at lists.digium.com libss7-commits at lists.digium.com
Thu Aug 17 16:44:41 MST 2006


Author: mattf
Date: Thu Aug 17 18:44:40 2006
New Revision: 14

URL: http://svn.digium.com/view/libss7?rev=14&view=rev
Log:
Handle unrecognzied optional parameters more forgivingly

Modified:
    trunk/isup.c

Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?rev=14&r1=13&r2=14&view=diff
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Thu Aug 17 18:44:40 2006
@@ -884,8 +884,8 @@
 
 			if (res < 0) {
 				ss7_error(ss7, "Unhandled optional parameter 0x%x '%s'\n", optparm->type, param2str(optparm->type));
-				isup_dump_buffer(ss7, mh->data + offset, len);
-				return 0;
+				isup_dump_buffer(ss7, optparm->data, optparm->len);
+				res = optparm->len + 2;
 			}
 
 			len -= res;



More information about the libss7-commits mailing list