浏览代码

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

Alex Hermann 11 年之前
父节点
当前提交
79695ed262
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/dialog/dialog.c

+ 1 - 1
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);
 				}