Skip to content
Snippets Groups Projects
Commit 2cf6ac53 authored by Russell Bryant's avatar Russell Bryant
Browse files

Merged revisions 283209 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r283209 | russell | 2010-08-23 08:06:57 -0500 (Mon, 23 Aug 2010) | 2 lines
  
  Don't blow up on an invalid AMA flag.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@283210 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent e893587a
No related branches found
No related tags found
No related merge requests found
......@@ -349,6 +349,11 @@ const char *ast_cel_get_type_name(enum ast_cel_event_type type)
const char *ast_cel_get_ama_flag_name(enum ast_cel_ama_flag flag)
{
if (flag < 0 || flag >= ARRAY_LEN(cel_ama_flags)) {
ast_log(LOG_WARNING, "Invalid AMA flag: %d\n", flag);
return "Unknown";
}
return S_OR(cel_ama_flags[flag], "Unknown");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment