[svn-commits] rmudgett: branch 12 r407324 - /branches/12/res/res_pjsip/pjsip_configuration.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 4 12:35:49 CST 2014


Author: rmudgett
Date: Tue Feb  4 12:35:47 2014
New Revision: 407324

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=407324
Log:
res_pjsip: Fix assertion for pjsip.conf authorization list options.

(closes issue ASTERISK-23168)
Reported by: George Joseph

Review: https://reviewboard.asterisk.org/r/3143/

Modified:
    branches/12/res/res_pjsip/pjsip_configuration.c

Modified: branches/12/res/res_pjsip/pjsip_configuration.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip/pjsip_configuration.c?view=diff&rev=407324&r1=407323&r2=407324
==============================================================================
--- branches/12/res/res_pjsip/pjsip_configuration.c (original)
+++ branches/12/res/res_pjsip/pjsip_configuration.c Tue Feb  4 12:35:47 2014
@@ -233,8 +233,10 @@
 	const char **alloced_auths;
 
 	ast_assert(auths != NULL);
-	ast_assert(auths->names == NULL);
-	ast_assert(!auths->num);
+
+	if (auths->names) {
+		ast_sip_auth_array_destroy(auths);
+	}
 
 	while ((val = strsep(&auth_names, ","))) {
 		if (auths->num >= num_alloced) {




More information about the svn-commits mailing list