Skip to content

Commit

Permalink
Merge pull request #1539 from christoph-v/bugfix_trash_expires
Browse files Browse the repository at this point in the history
Bugfix trash expires
  • Loading branch information
ngvoice committed May 24, 2018
2 parents 61f1959 + 2b1e895 commit c2fd44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ims_usrloc_scscf/impurecord.c
Expand Up @@ -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);
Expand Down

0 comments on commit c2fd44b

Please sign in to comment.