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

Commit dad7ba81 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Fix harmless cache key bug in res_cache" am: f1deb1c9 am: 22b8bdd3 am: f2e5d7db

Change-Id: I2e77c58ff77d13ed25db0a76a6f0c1e8f05e919e
parents 24c8bcd9 f2e5d7db
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;