]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 286222 via svnmerge from
authorTerry Wilson <twilson@digium.com>
Fri, 10 Sep 2010 22:56:14 +0000 (22:56 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 10 Sep 2010 22:56:14 +0000 (22:56 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r286222 | twilson | 2010-09-10 17:54:23 -0500 (Fri, 10 Sep 2010) | 1 line

  Return -1 if chan_local doesn't support an option
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@286223 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_local.c

index 3b843ce70dc9f97648b1dbe6dd1e251885fa70da..62568ca57d95e87ba90589210e2bc5ef91431e4b 100644 (file)
@@ -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;