From d80324dbddfa1aa1448d36bfa9c1fb8951e6dfad Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 19 Nov 2003 20:11:11 +0000 Subject: [PATCH] Ignore invalid/non Q.931 protocol discriminator git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@67 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/q931.c b/q931.c index 11c91ef..2c515c5 100755 --- a/q931.c +++ b/q931.c @@ -1937,6 +1937,9 @@ int q931_receive(struct pri *pri, q931_h *h, int len) 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) {