Module: kamailio Branch: 6.1 Commit: f599e3fc9369fe0bb37d428354b0df90831ea7b0 URL: https://github.com/kamailio/kamailio/commit/f599e3fc9369fe0bb37d428354b0df90831ea7b0
Author: Sergey KHripchenko <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-05-26T12:31:31+02:00 htable: fix expire value assignment on string cell replacements - assign the expire value to the newly allocated cell when replacing an existing entry, instead of updating the old cell that is freed immediately after - fixes ht_set_cell_ex() (cherry picked from commit 87e940522fcf97119b997ed3a9ff757b34ce9381) --- Modified: src/modules/htable/ht_api.c --- Diff: https://github.com/kamailio/kamailio/commit/f599e3fc9369fe0bb37d428354b0df90831ea7b0.diff Patch: https://github.com/kamailio/kamailio/commit/f599e3fc9369fe0bb37d428354b0df90831ea7b0.patch --- diff --git a/src/modules/htable/ht_api.c b/src/modules/htable/ht_api.c index 8c2c536795f..48958aa8c27 100644 --- a/src/modules/htable/ht_api.c +++ b/src/modules/htable/ht_api.c @@ -518,7 +518,7 @@ int ht_set_cell_ex( if(exv <= 0) { HT_COPY_EXPIRE(ht, cell, now, it); } else { - it->expire = now + exv; + cell->expire = now + exv; } if(it->prev) it->prev->next = cell; @@ -554,7 +554,7 @@ int ht_set_cell_ex( if(exv <= 0) { HT_COPY_EXPIRE(ht, cell, now, it); } else { - it->expire = now + exv; + cell->expire = now + exv; } cell->next = it->next; _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
