Skip to content
Snippets Groups Projects
Commit 07ef439a authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Bugfix in dnslib_dname_compare().

fixes #140
parent f82f7811
Branches
Tags
No related merge requests found
......@@ -242,16 +242,16 @@ int dnslib_dname_compare( const dnslib_dname_t *d1, const dnslib_dname_t *d2 )
int i2 = 0;
const uint8_t *pos1 = dnslib_dname_name(d1);
const uint8_t *pos2 = dnslib_dname_name(d1);
const uint8_t *pos2 = dnslib_dname_name(d2);
while (*pos1 != '\0') {
labels1[i1++] = pos1;
pos1 += *pos1;
pos1 += *pos1 + 1;
}
while (*pos2 != '\0') {
labels2[i2++] = pos2;
pos2 += *pos2;
pos2 += *pos2 + 1;
}
// compare labels from last to first
......
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