Module: kamailio
Branch: 5.1
Commit: 4e90aea7f06595d253c2f69b178ca7a2ce415aca
URL:
https://github.com/kamailio/kamailio/commit/4e90aea7f06595d253c2f69b178ca7a…
Author: frie <peter.friedrich(a)kapsch.net>
Committer: Christoph Valentin <christoph.valentin(a)kapsch.net>
Date: 2018-06-20T17:49:10+02:00
ims_usrloc_scscf:bugfix erraneous unlinking of deleted contact
impurecord.c: corrected small bug in remove_impucontact_from_list()
---
Modified: src/modules/ims_usrloc_scscf/impurecord.c
---
Diff:
https://github.com/kamailio/kamailio/commit/4e90aea7f06595d253c2f69b178ca7a…
Patch:
https://github.com/kamailio/kamailio/commit/4e90aea7f06595d253c2f69b178ca7a…
---
diff --git a/src/modules/ims_usrloc_scscf/impurecord.c
b/src/modules/ims_usrloc_scscf/impurecord.c
index 6510d85aa1..20c8a64154 100644
--- a/src/modules/ims_usrloc_scscf/impurecord.c
+++ b/src/modules/ims_usrloc_scscf/impurecord.c
@@ -1102,10 +1102,11 @@ int remove_impucontact_from_list(impurecord_t* impu,
impu_contact_t *impucontact
} else if (contact == impu->linked_contacts.tail->contact) {
LM_DBG("deleting tail\n");
impu->linked_contacts.tail = impu->linked_contacts.tail->prev;
+ impu->linked_contacts.tail->next = 0;
} else {
LM_DBG("deleting mid list\n");
impucontact->prev->next = impucontact->next;
- impucontact->prev = impucontact->next->prev;
+ impucontact->next->prev = impucontact->prev;
}
impu->linked_contacts.numcontacts--;