diff options
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_zap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index c1e276fb2..ee1ea9183 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -8423,14 +8423,14 @@ static int action_zapdialoffhook(struct mansession *s, struct message *m) return 0; } p = find_channel(atoi(channel)); - if (!p->owner) { - astman_send_error(s, m, "Channel does not have it's owner"); - return 0; - } if (!p) { astman_send_error(s, m, "No such channel"); return 0; } + if (!p->owner) { + astman_send_error(s, m, "Channel does not have it's owner"); + return 0; + } for (i=0; i<strlen(number); i++) { struct ast_frame f = { AST_FRAME_DTMF, number[i] }; zap_queue_frame(p, &f); |