Repository navigation
Commit a6c7ab5
[IPSEC]: Policy list disorder
The recent hashing introduced an off-by-one bug in policy list insertion.
Instead of adding after the last entry with a lesser or equal priority,
we're adding after the successor of that entry.
This patch fixes this and also adds a warning if we detect a duplicate
entry in the policy list. This should never happen due to this if clause.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 8f1adb5 commit a6c7ab5
1 file changed
Lines changed: 5 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
653 | | - | |
| 653 | + | |
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
660 | | - | |
661 | 660 | | |
662 | | - | |
663 | | - | |
| 661 | + | |
664 | 662 | | |
665 | | - | |
| 663 | + | |
| 664 | + | |
666 | 665 | | |
667 | 666 | | |
668 | 667 | | |
| |||
671 | 670 | | |
672 | 671 | | |
673 | 672 | | |
674 | | - | |
| 673 | + | |
675 | 674 | | |
676 | 675 | | |
677 | | - | |
678 | | - | |
679 | 676 | | |
680 | 677 | | |
681 | | - | |
682 | 678 | | |
683 | | - | |
684 | | - | |
685 | 679 | | |
686 | 680 | | |
687 | 681 | | |
| |||
0 commit comments