mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Ensure that we don't ast_strdupa(NULL)
(closes issue #12476) Reported by: davidw Patch by me git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114248 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1500,7 +1500,7 @@ static int action_agents(struct mansession *s, const struct message *m)
|
|||||||
loginChan = ast_strdupa(p->chan->name);
|
loginChan = ast_strdupa(p->chan->name);
|
||||||
if (p->owner && p->owner->_bridge) {
|
if (p->owner && p->owner->_bridge) {
|
||||||
if (ast_bridged_channel(p->owner)) {
|
if (ast_bridged_channel(p->owner)) {
|
||||||
talkingtoChan = ast_strdupa(ast_bridged_channel(p->owner)->cid.cid_num);
|
talkingtoChan = ast_strdupa(S_OR(ast_bridged_channel(p->owner)->cid.cid_num, ""));
|
||||||
} else {
|
} else {
|
||||||
talkingtoChan = "n/a";
|
talkingtoChan = "n/a";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user