[Asterisk-cvs] libpri q931.c,1.38,1.39

markster at lists.digium.com markster at lists.digium.com
Wed Nov 19 13:44:54 CST 2003


Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv15951

Modified Files:
	q931.c 
Log Message:
Ignore invalid/non Q.931 protocol discriminator


Index: q931.c
===================================================================
RCS file: /usr/cvsroot/libpri/q931.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- q931.c	15 Oct 2003 13:56:10 -0000	1.38
+++ q931.c	19 Nov 2003 20:11:11 -0000	1.39
@@ -1937,6 +1937,9 @@
 		h->raw[3] -= 0x8;
 		q931_xmit(pri, h, len, 1);
 		return 0;
+	} else if (h->pd != Q931_PROTOCOL_DISCRIMINATOR) {
+		pri_error("Warning: unknown protocol discriminator received\n");
+		return 0;
 	}
 	c = q931_getcall(pri, q931_cr(h));
 	if (!c) {




More information about the svn-commits mailing list