[libpri-commits] rmudgett: branch 1.4 r2286 - /branches/1.4/q931.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Mon May 14 09:54:06 CDT 2012


Author: rmudgett
Date: Mon May 14 09:54:01 2012
New Revision: 2286

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=2286
Log:
Make pri_pres2str() return correct string.

* Fix pri_pres2str() mask creation.

(closes issue PRI-139)
Reported by: Pavel Troller
Patches:
      q931.c.diff (license #5621) patch uploaded by Pavel Troller

Modified:
    branches/1.4/q931.c

Modified: branches/1.4/q931.c
URL: http://svnview.digium.com/svn/libpri/branches/1.4/q931.c?view=diff&rev=2286&r1=2285&r2=2286
==============================================================================
--- branches/1.4/q931.c (original)
+++ branches/1.4/q931.c Mon May 14 09:54:01 2012
@@ -2068,7 +2068,7 @@
 		{ PRI_PRES_RESERVED | PRI_PRES_NETWORK_NUMBER,               "Reserved, Network provided" },
 	};
 
-	pres &= (PRI_PRES_RESTRICTION & PRI_PRES_NUMBER_TYPE);
+	pres &= (PRI_PRES_RESTRICTION | PRI_PRES_NUMBER_TYPE);
 	return code2str(pres, press, sizeof(press) / sizeof(press[0]));
 }
 




More information about the libpri-commits mailing list