Fixed br_ssl_session_cache_lru_forget().
authorThomas Pornin <thomas.pornin@nccgroup.trust>
Sun, 30 Jul 2017 18:11:45 +0000 (14:11 -0400)
committerThomas Pornin <thomas.pornin@nccgroup.trust>
Sun, 30 Jul 2017 18:11:45 +0000 (14:11 -0400)
src/ssl/ssl_lru.c

index 7a2036b..4c71011 100644 (file)
@@ -530,7 +530,7 @@ void br_ssl_session_cache_lru_forget(
         * so this is not worth the extra code size.
         */
        mask_id(cc, id, mid);
         * so this is not worth the extra code size.
         */
        mask_id(cc, id, mid);
-       addr = find_node(cc, id, NULL);
+       addr = find_node(cc, mid, NULL);
        if (addr != ADDR_NULL) {
                br_enc16be(cc->store + addr + VERSION_OFF, 0);
        }
        if (addr != ADDR_NULL) {
                br_enc16be(cc->store + addr + VERSION_OFF, 0);
        }