Fixed br_ssl_session_cache_lru_forget().

This commit is contained in:
Thomas Pornin 2017-07-30 14:11:45 -04:00
parent 0cc2e23690
commit ce1c57909a

View file

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