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

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


Module: kamailio
Branch: master
Commit: c986a820042764fd7025be0a0766991181a0b0ea
URL: https://github.com/kamailio/kamailio/commit/c986a820042764fd7025be0a0766991181a0b0ea

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

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

- reported by GH #1032

---

Modified: src/modules/dialog/dialog.c

---

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

---

diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index 4879a48..c572deb 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -1616,8 +1616,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