Module: kamailio
Branch: master
Commit: f2db229ae450d6443da51950976e92d5eaa7ecd0
URL:
https://github.com/kamailio/kamailio/commit/f2db229ae450d6443da51950976e92d…
Author: frie <peter.friedrich(a)kapsch.net>
Committer: frie <peter.friedrich(a)kapsch.net>
Date: 2018-06-12T16:44:06+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/f2db229ae450d6443da51950976e92d…
Patch:
https://github.com/kamailio/kamailio/commit/f2db229ae450d6443da51950976e92d…
---
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--;