[libpri-commits] rmudgett: branch 1.4 r1625 - /branches/1.4/q921.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Mon Apr 19 17:08:52 CDT 2010


Author: rmudgett
Date: Mon Apr 19 17:08:50 2010
New Revision: 1625

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1625
Log:
Fix potential crash when pridump.c calls q921_dump() with NULL pri ptr.

Modified:
    branches/1.4/q921.c

Modified: branches/1.4/q921.c
URL: http://svnview.digium.com/svn/libpri/branches/1.4/q921.c?view=diff&rev=1625&r1=1624&r2=1625
==============================================================================
--- branches/1.4/q921.c (original)
+++ branches/1.4/q921.c Mon Apr 19 17:08:50 2010
@@ -857,6 +857,9 @@
 {
 	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)) {




More information about the libpri-commits mailing list