Module: kamailio Branch: master Commit: 87e940522fcf97119b997ed3a9ff757b34ce9381 URL: https://github.com/kamailio/kamailio/commit/87e940522fcf97119b997ed3a9ff757b34ce9381
Author: Sergey KHripchenko <[email protected]> Committer: Victor Seva <[email protected]> Date: 2026-05-19T16:09:00+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() --- Modified: src/modules/htable/ht_api.c --- Diff: https://github.com/kamailio/kamailio/commit/87e940522fcf97119b997ed3a9ff757b34ce9381.diff Patch: https://github.com/kamailio/kamailio/commit/87e940522fcf97119b997ed3a9ff757b34ce9381.patch --- diff --git a/src/modules/htable/ht_api.c b/src/modules/htable/ht_api.c index 2f8cd5f3d99..23eb8f31c91 100644 --- a/src/modules/htable/ht_api.c +++ b/src/modules/htable/ht_api.c @@ -547,7 +547,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; @@ -583,7 +583,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!
