We don't need to hash the ID twice
authoraland <aland>
Mon, 23 Apr 2007 08:44:55 +0000 (08:44 +0000)
committeraland <aland>
Mon, 23 Apr 2007 08:44:55 +0000 (08:44 +0000)
src/lib/packet.c

index f872528..d095e4c 100644 (file)
@@ -40,7 +40,6 @@ uint32_t lrad_request_packet_hash(const RADIUS_PACKET *packet)
        if (packet->hash) return packet->hash;
 
        hash = lrad_hash(&packet->sockfd, sizeof(packet->sockfd));
-       hash = lrad_hash_update(&packet->id, sizeof(packet->id), hash);
        hash = lrad_hash_update(&packet->src_port, sizeof(packet->src_port),
                                hash);
        hash = lrad_hash_update(&packet->dst_port,