Module: kamailio Branch: master Commit: 199202f453b4a5f01783a4c2ba5c5ed2e10b0739 URL: https://github.com/kamailio/kamailio/commit/199202f453b4a5f01783a4c2ba5c5ed2...
Author: Federico Cabiddu federico.cabiddu@gmail.com Committer: Federico Cabiddu federico.cabiddu@gmail.com Date: 2015-09-01T16:28:29+02:00
Merge pull request #311 from doublec/tsilo_transaction_fix
Change remove_ts_transaction so it updates head pointer of list
---
Modified: modules/tsilo/ts_hash.c
---
Diff: https://github.com/kamailio/kamailio/commit/199202f453b4a5f01783a4c2ba5c5ed2... Patch: https://github.com/kamailio/kamailio/commit/199202f453b4a5f01783a4c2ba5c5ed2...
---
diff --git a/modules/tsilo/ts_hash.c b/modules/tsilo/ts_hash.c index cf529ee..7986991 100644 --- a/modules/tsilo/ts_hash.c +++ b/modules/tsilo/ts_hash.c @@ -396,8 +396,8 @@ void remove_ts_transaction(ts_transaction_t* ts_t) if (ts_t->prev) ts_t->prev->next = ts_t->next;
- if ((ts_t->prev == NULL) && (ts_t->next == NULL)) - ts_t->urecord->transactions = NULL; + if (ts_t->urecord->transactions == ts_t) + ts_t->urecord->transactions = ts_t->next;
free_ts_transaction((void*)ts_t);