summaryrefslogtreecommitdiff
path: root/net/gatekeeper/files/patch-clirw-cxx
blob: 83dfb35c8f34b426e3606b07295f410ff386bb49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- clirw.cxx	2006-02-20 05:03:23.000000000 -0500
+++ clirw.cxx	2006-12-06 11:35:37.000000000 -0500
@@ -408,7 +408,7 @@
 			if (rule->m_screeningType == RewriteRule::NoScreening) {
 				rule->m_cli.resize(clis.GetSize());
 				for (PINDEX j = 0; j < clis.GetSize(); j++)
-					rule->m_cli[j] = clis[j];
+					rule->m_cli[j] = (string)((const char *)(clis[j]));
 			} else
 				rule->m_cli.clear();
 
@@ -667,6 +667,9 @@
 		++rule;
 	}
 
+	if (rule == ipRule.second.end())
+		return;
+
 	bool isTerminal = false;	
 	if (authData && authData->m_call) {
 		endptr callee = authData->m_call->GetCalledParty();