ports/net/xorp/files/patch-policy__configuration.cc
Hiroki Sato 0a0906700b - Use USE_GITHUB.
- Add USE_LDCONFIG when SHARED is enabled.
- Use OPTIONS_SUB.
- Use {opt}_FOO wherever possible.
- Normalize patch files.
- Take maintainership.
2015-09-07 19:04:23 +00: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);