File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -348,10 +348,11 @@ class Binder
348
348
}
349
349
350
350
// Generate set of unique interface names (used for formation of logical link set in multipath code)
351
+ // TODO: Could be gated not to run if multipath is not enabled.
351
352
for (std::map<InetAddress,std::string>::const_iterator ii (localIfAddrs.begin ());ii!=localIfAddrs.end ();++ii) {
352
353
linkIfNames.insert (ii->second );
353
354
}
354
- for (std::set<std::string>::iterator si (linkIfNames.begin ());si!=linkIfNames.end ();si++ ) {
355
+ for (std::set<std::string>::iterator si (linkIfNames.begin ());si!=linkIfNames.end ();) {
355
356
bool bFoundMatch = false ;
356
357
for (std::map<InetAddress,std::string>::const_iterator ii (localIfAddrs.begin ());ii!=localIfAddrs.end ();++ii) {
357
358
if (ii->second == *si) {
@@ -360,7 +361,10 @@ class Binder
360
361
}
361
362
}
362
363
if (!bFoundMatch) {
363
- linkIfNames.erase (si);
364
+ linkIfNames.erase (si++);
365
+ }
366
+ else {
367
+ ++si;
364
368
}
365
369
}
366
370
You can’t perform that action at this time.
0 commit comments