Fix potential crash when pridump.c calls q921_dump() with NULL pri ptr.

git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1625 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Richard Mudgett
2010-04-19 22:08:50 +00:00
parent 5ff4710e77
commit 7babaeb2fe

3
q921.c
View File

@@ -857,6 +857,9 @@ static void q921_dump_pri_by_h(struct pri *vpri, q921_h *h)
{
struct pri *pri = NULL;
if (!vpri) {
return;
}
if (BRI_NT_PTMP(vpri)) {
pri = pri_find_tei(vpri, h->h.sapi, h->h.tei);
} else if (BRI_TE_PTMP(vpri)) {