• dishather's avatar
    Fix random segfaults due to write into free'd memory · fd8191ee
    dishather authored
    In DhtServer::process_queue(), packet's transaction can be deleted by
    failed_transaction(). Yet, the transaction is "cleaned" after that,
    which causes write into previously freed memory (possibly into
    some other object).
    This fix introduces a check that the transaction still exists, and
    only modifies an existing transaction.
dht_server.cc 28.7 KB