aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index 3b843ce70..62568ca57 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -136,7 +136,7 @@ static int local_setoption(struct ast_channel *chan, int option, void * data, in
ast_chan_write_info_t *write_info;
if (option != AST_OPTION_CHANNEL_WRITE) {
- return 0;
+ return -1;
}
write_info = data;