[sr-dev] git:master: dialog: fix crash when trying to RPC export a "remote" profile

Alex Hermann alex at speakup.nl
Mon Nov 3 10:34:03 CET 2014


Module: sip-router
Branch: master
Commit: 79695ed2628db60199647baf653ce5f9b9005fe9
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=79695ed2628db60199647baf653ce5f9b9005fe9

Author: Alex Hermann <alex at speakup.nl>
Committer: Alex Hermann <alex at speakup.nl>
Date:   Thu Oct 23 17:49:44 2014 +0200

dialog: fix crash when trying to RPC export a "remote" profile

---

 modules/dialog/dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/dialog/dialog.c b/modules/dialog/dialog.c
index b1000b0..8cc0d5e 100644
--- a/modules/dialog/dialog.c
+++ b/modules/dialog/dialog.c
@@ -1660,7 +1660,7 @@ static void internal_rpc_profile_print_dlgs(rpc_t *rpc, void *c, str *profile_na
 		ph = profile->entries[i].first;
 		if(ph) {
 			do {
-				if (!value || (STR_EQ(*value, ph->value))) {
+				if ((!value || (STR_EQ(*value, ph->value))) && ph->dlg) {
 					/* print dialog */
 					internal_rpc_print_dlg(rpc, c, ph->dlg, 0);
 				}




More information about the sr-dev mailing list