Ignore invalid/non Q.931 protocol discriminator

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@67 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Mark Spencer 2003-11-19 20:11:11 +00:00
parent e172ca2a03
commit d80324dbdd

3
q931.c
View File

@ -1937,6 +1937,9 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
h->raw[3] -= 0x8; h->raw[3] -= 0x8;
q931_xmit(pri, h, len, 1); q931_xmit(pri, h, len, 1);
return 0; 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)); c = q931_getcall(pri, q931_cr(h));
if (!c) { if (!c) {