[sr-dev] git:4.4:f2b6cb7f: dialog: fix for rpc list dialogs release of the profile locks

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 13 14:54:41 CET 2017


Module: kamailio
Branch: 4.4
Commit: f2b6cb7f94acd6fa3f9b802e86b09cde0903cd68
URL: https://github.com/kamailio/kamailio/commit/f2b6cb7f94acd6fa3f9b802e86b09cde0903cd68

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-03-13T14:53:33+01:00

dialog: fix for rpc list dialogs release of the profile locks

- reported by GH #1032

(cherry picked from commit c986a820042764fd7025be0a0766991181a0b0ea)
(cherry picked from commit 28672ebc9dceb09221c720bdd052ac23f274580f)

---

Modified: modules/dialog/dialog.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f2b6cb7f94acd6fa3f9b802e86b09cde0903cd68.diff
Patch: https://github.com/kamailio/kamailio/commit/f2b6cb7f94acd6fa3f9b802e86b09cde0903cd68.patch

---

diff --git a/modules/dialog/dialog.c b/modules/dialog/dialog.c
index 7d56cfc..ceaf08a 100644
--- a/modules/dialog/dialog.c
+++ b/modules/dialog/dialog.c
@@ -1676,8 +1676,8 @@ static void internal_rpc_profile_print_dlgs(rpc_t *rpc, void *c, str *profile_na
 				ph=ph->next;
 			}while(ph!=profile->entries[i].first);
 		}
-		lock_release(&profile->lock);
 	}
+	lock_release(&profile->lock);
 }
 
 /*




More information about the sr-dev mailing list