Commit 221c60ce authored by Matthieu Boutier's avatar Matthieu Boutier Committed by Juliusz Chroboczek

Make source_compare consistent: also compare src_plen.

parent 61e4d89b
......@@ -56,6 +56,11 @@ source_compare(const unsigned char *id,
if(rc != 0)
return rc;
if(src_plen < src->src_plen)
return -1;
if(src_plen > src->src_plen)
return 1;
rc = memcmp(src_prefix, src->src_prefix, 16);
if(rc != 0)
return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment