[sr-dev] git:master:c2fd44b6: Merge pull request #1539 from christoph-v/bugfix_trash_expires
GitHub
noreply at github.com
Thu May 24 10:30:28 CEST 2018
Module: kamailio
Branch: master
Commit: c2fd44b6101116dd6bfb4c14ef81ea87e5af6f6e
URL: https://github.com/kamailio/kamailio/commit/c2fd44b6101116dd6bfb4c14ef81ea87e5af6f6e
Author: ng-voice GmbH <info at ng-voice.com>
Committer: GitHub <noreply at github.com>
Date: 2018-05-24T10:30:22+02:00
Merge pull request #1539 from christoph-v/bugfix_trash_expires
Bugfix trash expires
---
Modified: src/modules/ims_usrloc_scscf/impurecord.c
---
Diff: https://github.com/kamailio/kamailio/commit/c2fd44b6101116dd6bfb4c14ef81ea87e5af6f6e.diff
Patch: https://github.com/kamailio/kamailio/commit/c2fd44b6101116dd6bfb4c14ef81ea87e5af6f6e.patch
---
diff --git a/src/modules/ims_usrloc_scscf/impurecord.c b/src/modules/ims_usrloc_scscf/impurecord.c
index 9cee5bc765..6510d85aa1 100644
--- a/src/modules/ims_usrloc_scscf/impurecord.c
+++ b/src/modules/ims_usrloc_scscf/impurecord.c
@@ -1239,7 +1239,7 @@ int unlink_contact_from_impu(impurecord_t* impu, ucontact_t* contact, int write_
impucontact = impu->linked_contacts.head;
while (impucontact) {
- if ((contact = impucontact->contact)) {
+ if ((contact == impucontact->contact)) {
remove_impucontact_from_list(impu, impucontact);
if (write_to_db && db_mode == WRITE_THROUGH && (db_unlink_contact_from_impu(impu, contact) != 0)) {
LM_ERR("Failed to un-link DB contact [%.*s] from IMPU [%.*s]...continuing but db will be out of sync!\n", contact->c.len, contact->c.s, impu->public_identity.len, impu->public_identity.s);
More information about the sr-dev
mailing list