Module: sip-router
Branch: master
Commit: 79695ed2628db60199647baf653ce5f9b9005fe9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=79695ed…
Author: Alex Hermann <alex(a)speakup.nl>
Committer: Alex Hermann <alex(a)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);
}