diff options
author | Mark Spencer <markster@digium.com> | 2004-03-12 21:26:45 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-03-12 21:26:45 +0000 |
commit | afab3c41511219eb609181eb1062d53a4f7c2909 (patch) | |
tree | 233cd94dbae5463dfec51e1d54767458da3cc5a2 /channels/chan_zap.c | |
parent | 3a2f0750cb69d4d6af7d829cb999bc79f5fe794f (diff) |
Fix a martin segfault
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2411 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-x | channels/chan_zap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index b8173e517..c153063e9 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -3138,7 +3138,7 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast) } else if (!p->subs[SUB_THREEWAY].owner) { char callerid[256]; if (p->threewaycalling && !check_for_conference(p)) { - if (p->zaptrcallerid && p->owner) + if (p->zaptrcallerid && p->owner && p->owner->callerid) strncpy(callerid, p->owner->callerid, sizeof(callerid) - 1); /* XXX This section needs much more error checking!!! XXX */ /* Start a 3-way call if feasible */ |