Skip to content

Commit

Permalink
Revert "Fix bug allowing the comparison of v4 and v6 prefixes."
Browse files Browse the repository at this point in the history
That patch was fixing a little bug, but makes another bigger one.
The previous patch fixes both.

This reverts commit e687a58.
  • Loading branch information
Matthieu Boutier authored and Juliusz Chroboczek committed May 23, 2017
1 parent d05ec6b commit afdc3e1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,6 @@ prefix_cmp(const unsigned char *p1, unsigned char plen1,
{
int plen = MIN(plen1, plen2);

if(v4mapped(p1) != v4mapped(p2))
return PST_DISJOINT;

if(memcmp(p1, p2, plen / 8) != 0)
return PST_DISJOINT;

Expand Down

0 comments on commit afdc3e1

Please sign in to comment.