opnsense-ports/net/xorp/files/patch-policy__configuration.cc
Franco Fichtner 69b48d3f1e */*: sync with upstream
Taken from: FreeBSD
2015-09-10 05:23:56 +02:00

13 lines
500 B
C++

--- policy/configuration.cc.orig 2012-01-11 17:56:10 UTC
+++ policy/configuration.cc
@@ -766,7 +766,9 @@ IEMap::link_code(const string& proto, Co
POLICY* p = find_policy(proto);
XLOG_ASSERT(p);
- for (POLICY::reverse_iterator i = p->rbegin(); i != p->rend(); ++i) {
+// for (POLICY::reverse_iterator i = p->rbegin(); i != p->rend(); ++i) {
+ if (! p->empty())
+ for (POLICY::iterator i = p->end(); --i != p->begin(); ) {
PolicyList* pl = i->second;
pl->link_code(code);