提交 feb3bd78 authored 作者: Kapil Gupta's avatar Kapil Gupta

cli issue fix

上级 e7c2e18f
...@@ -196,10 +196,12 @@ switch_status_t mg_process_cli_cmd(const char *cmd, switch_stream_handle_t *stre ...@@ -196,10 +196,12 @@ switch_status_t mg_process_cli_cmd(const char *cmd, switch_stream_handle_t *stre
goto usage; goto usage;
} }
megaco_profile_release(profile); if(profile){
handle_term_status_cli_cmd(stream, profile, argv[3]); megaco_profile_release(profile);
handle_term_status_cli_cmd(stream, profile, argv[3]);
} else {
stream->write_function(stream, "-ERR No such profile\n");
}
/**********************************************************************************/ /**********************************************************************************/
}else { }else {
...@@ -237,6 +239,7 @@ switch_status_t mg_process_cli_cmd(const char *cmd, switch_stream_handle_t *stre ...@@ -237,6 +239,7 @@ switch_status_t mg_process_cli_cmd(const char *cmd, switch_stream_handle_t *stre
usage: usage:
if(profile) if(profile)
megaco_profile_release(profile); megaco_profile_release(profile);
megaco_cli_print_usage(stream); megaco_cli_print_usage(stream);
done: done:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论