mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Don't reference a potentially NULL pointer. (issue #9199 reported by klolik)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@57770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -383,7 +383,8 @@ static int aji_status_exec(struct ast_channel *chan, void *data)
|
||||
r = buddy->resources;
|
||||
if(!r)
|
||||
ast_log(LOG_NOTICE, "Resource %s of buddy %s not found \n", resource, screenname);
|
||||
stat = r->status;
|
||||
else
|
||||
stat = r->status;
|
||||
sprintf(status, "%d", stat);
|
||||
pbx_builtin_setvar_helper(chan, variable, status);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user