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

libss7-commits at lists.digium.com libss7-commits at lists.digium.com
Thu Aug 17 12:56:40 MST 2006


Author: mattf
Date: Thu Aug 17 14:56:40 2006
New Revision: 13

URL: http://svn.digium.com/view/libss7?rev=13&view=rev
Log:
Make sure we don't return -1 on unknown optional parameter

Modified:
    trunk/isup.c

Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?rev=13&r1=12&r2=13&view=diff
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Thu Aug 17 14:56:40 2006
@@ -883,9 +883,9 @@
 			res = do_parm(ss7, c, mh->type, optparm->type, mh->data + offset, len, PARM_TYPE_OPTIONAL, 0); /* Find out what else we need to add */
 
 			if (res < 0) {
-				ss7_error(ss7, "!! Unable to parse optional parameter 0x%x '%s'\n", optparm->type, param2str(optparm->type));
+				ss7_error(ss7, "Unhandled optional parameter 0x%x '%s'\n", optparm->type, param2str(optparm->type));
 				isup_dump_buffer(ss7, mh->data + offset, len);
-				return -1;
+				return 0;
 			}
 
 			len -= res;



More information about the libss7-commits mailing list