Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1deb1c9 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix harmless cache key bug in res_cache"

parents a0e280c2 2ddb6301
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -435,6 +435,7 @@ static unsigned _dnsPacket_hashBytes(DnsPacket* packet, int numBytes, unsigned h


    while (numBytes > 0 && p < end) {
    while (numBytes > 0 && p < end) {
        hash = hash * FNV_MULT ^ *p++;
        hash = hash * FNV_MULT ^ *p++;
        numBytes--;
    }
    }
    packet->cursor = p;
    packet->cursor = p;
    return hash;
    return hash;