[sr-dev] git:master:f2db229a: ims_usrloc_scscf:bugfix erraneous unlinking of deleted contact
frie
peter.friedrich at kapsch.net
Wed Jun 20 08:27:54 CEST 2018
Module: kamailio
Branch: master
Commit: f2db229ae450d6443da51950976e92d5eaa7ecd0
URL: https://github.com/kamailio/kamailio/commit/f2db229ae450d6443da51950976e92d5eaa7ecd0
Author: frie <peter.friedrich at kapsch.net>
Committer: frie <peter.friedrich at 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/f2db229ae450d6443da51950976e92d5eaa7ecd0.diff
Patch: https://github.com/kamailio/kamailio/commit/f2db229ae450d6443da51950976e92d5eaa7ecd0.patch
---
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--;
More information about the sr-dev
mailing list