Skip to content

Commit

Permalink
Added null paramater access control.
Browse files Browse the repository at this point in the history
- If get null byte, just return null
  • Loading branch information
pchero committed May 7, 2015
1 parent 6cb15d5 commit 2109230
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/res_zmq_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ static struct ast_json* parse_msg(char* msg)
char* dump;

ast_log(AST_LOG_DEBUG, "Parse ami message. msg[%s]\n", msg);
if(msg == NULL)
{
return ast_json_null();
}

memset(tmp, 0x00, sizeof(tmp));

Expand Down

0 comments on commit 2109230

Please sign in to comment.