aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-10 22:54:23 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-10 22:54:23 +0000
commit97a32380a70c05c453a3d3f50c9acb356b3c534e (patch)
treed2ca310c47c7b79332e0e174b84ce803024dd434 /channels
parente791a85615fa8dd59deb11825b84d00e3d04e54b (diff)
Return -1 if chan_local doesn't support an option
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@286222 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 f49eb0b2f..5f17e1814 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -134,7 +134,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;