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:
parent
e172ca2a03
commit
d80324dbdd
3
q931.c
3
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user